LAPTOP-KB9HII50\70708 3 rokov pred
rodič
commit
fe432d26ee

+ 12 - 23
business/base-service/src/main/java/com/yihu/jw/healthCare/service/HealthCareService.java

@ -27,6 +27,7 @@ import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
import com.yihu.jw.hospital.prescription.dao.PrescriptionDao;
import com.yihu.jw.hospital.prescription.dao.PrescriptionExpressageDao;
import com.yihu.jw.hospital.prescription.dao.PrescriptionInfoDao;
import com.yihu.jw.hospital.prescription.service.entrance.XzzxEntranceService;
import com.yihu.jw.patient.dao.BasePatientDao;
import com.yihu.jw.util.common.LatitudeUtils;
import com.yihu.jw.util.date.DateUtil;
@ -87,6 +88,8 @@ public class HealthCareService {
    private YlzMedicailIcdDao ylzMedicailIcdDao;
    @Autowired
    private YlzMedicailMxDao ylzMedicailMxDao;
    @Autowired
    private XzzxEntranceService xzzxEntranceService;
    private String ylzConfigUrl;
    private String ylzConfigAppid;
@ -95,7 +98,7 @@ public class HealthCareService {
    private String ylzConfigSignKey;
    private String ylzConfigOrgCode;
    public static String entranceUrl = "http://172.16.100.240:10023/xzzx/";
    public static String entranceHealthCareUrl = "http://172.16.100.240:10023/healthCare/";
    public void initConfig() throws Exception{
@ -307,19 +310,12 @@ public class HealthCareService {
            JSONObject data;
            //获取his处方信息
            String presUploadUrl = entranceUrl + "presUpload?icCardNo="+icCardNo+"&his_serial="+his_serial+"&org_code="+org_code;
            String infoResponse = httpClientUtil.get(presUploadUrl,"GBK");
            logger.info("处方infoResponse:"+infoResponse);
            String infoResponse = xzzxEntranceService.presUpload(icCardNo,his_serial,org_code);
            JSONObject infoObject = JSONObject.parseObject(infoResponse);
            if (infoObject.getString("status").equalsIgnoreCase("200")) {
                JSONObject obj = infoObject.getJSONObject("obj");
                if("0".equals(obj.getString("ret_code"))){
                    data = obj;
                }else {
                    throw new Exception("获取his处方信息失败:"+obj.getString("ret_mess"));
                }
            if("0".equals(infoObject.getString("ret_code"))){
                data = infoObject;
            }else {
                throw new Exception("获取his处方信息失败");
                throw new Exception("获取his处方信息失败:"+infoObject.getString("ret_mess"));
            }
            data.remove("ret_code");
@ -369,19 +365,12 @@ public class HealthCareService {
        JSONObject data;
        //获取his处方信息
        String presUploadUrl = entranceUrl + "presUpload?icCardNo="+icCardNo+"&his_serial="+his_serial+"&org_code="+org_code;
        String infoResponse = httpClientUtil.get(presUploadUrl,"GBK");
        logger.info("处方infoResponse:"+infoResponse);
        String infoResponse = xzzxEntranceService.presUpload(icCardNo,his_serial,org_code);
        JSONObject infoObject = JSONObject.parseObject(infoResponse);
        if (infoObject.getString("status").equalsIgnoreCase("200")) {
            JSONObject obj = infoObject.getJSONObject("obj");
            if("0".equals(obj.getString("ret_code"))){
                data = obj;
            }else {
                throw new Exception("获取his处方信息失败:"+obj.getString("ret_mess"));
            }
        if("0".equals(infoObject.getString("ret_code"))){
            data = infoObject;
        }else {
            throw new Exception("获取his处方信息失败");
            throw new Exception("获取his处方信息失败:"+infoObject.getString("ret_mess"));
        }
        data.remove("ret_code");

+ 3 - 0
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -327,6 +327,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
    @Autowired
    private HealthCareService healthCareService;
    public static String entranceUrl = "http://172.16.100.240:10023/xzzx/";
    @Value("${demo.flag}")
    private boolean demoFlag;
    @Value("${wechat.id}")
@ -9188,6 +9190,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
                            //调医保接口
                            try {
                                if(healthCareService.isHospitalFlag()){
                                    a
                                    healthCareService.advanceWarning(wlyyPrescriptionDO.getId());
                                    healthCareService.doctorPrescriptionUpload(wlyyPrescriptionDO.getId());
                                }