|
@ -1056,8 +1056,12 @@ public class YkyyEntranceService {
|
|
|
params.put("json",jsonString);
|
|
|
params.put("table","HLW_CF01");
|
|
|
logger.info("HLW_CF01:"+jsonString);
|
|
|
/**
|
|
|
{"message":null,"status":200,"obj":{"cfhm":1898356,"cfsb":5390518}}
|
|
|
|
|
|
*/
|
|
|
HttpResponse response = HttpUtils.doGet(saveUrl,params);
|
|
|
String cfsb = "";
|
|
|
String cfsb = null;
|
|
|
if (response.getStatus()==200){
|
|
|
logger.info("content"+response.getContent());
|
|
|
String content = response.getContent();
|
|
@ -1065,11 +1069,11 @@ public class YkyyEntranceService {
|
|
|
JSONObject object = jsonObject.getJSONObject("obj");
|
|
|
if (object!=null){
|
|
|
cfsb = object.getString("cfsb");
|
|
|
logger.info("kaishi=========="+cfsb);
|
|
|
List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(code);
|
|
|
if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
|
|
|
wlyyPrescriptionDO.setRealOrder(cfsb);
|
|
|
wlyyPrescriptionVO.setRealOrder(cfsb);
|
|
|
prescriptionDao.save(wlyyPrescriptionDO);
|
|
|
}
|
|
|
}
|
|
@ -1078,8 +1082,8 @@ public class YkyyEntranceService {
|
|
|
}else {
|
|
|
logger.info("表HLW_CF01同步失败!"+response.getErrorMsg());
|
|
|
}
|
|
|
logger.info("处方:"+wlyyPrescriptionVO);
|
|
|
if (!StringUtils.isNoneBlank(cfsb)){
|
|
|
logger.info("处方:"+cfsb);
|
|
|
if (StringUtils.isEmpty(cfsb)){
|
|
|
throw new Exception("添加失败");
|
|
|
}
|
|
|
List<WlyyPrescriptionInfoVO> wlyyPrescriptionInfoVOS =wlyyPrescriptionVO.getInfoVOs();
|