|
@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
|
import org.apache.http.NameValuePair;
|
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@ -20,6 +22,7 @@ import java.util.Map;
|
|
|
@Service
|
|
|
public class JwPrescriptionService {
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(JwPrescriptionService.class);
|
|
|
//基卫服务地址
|
|
|
@Value("${sign.check_upload}")
|
|
|
private String jwUrl;
|
|
@ -115,6 +118,11 @@ public class JwPrescriptionService {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public String saveRecipe(String prescriptionCode) throws Exception{
|
|
|
try {
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
|
}
|
|
|
String url = jwUrl + "/third/prescription/saveRecipe";
|
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
|
params.add(new BasicNameValuePair("prescriptionCode", prescriptionCode));
|