|
@ -99,7 +99,6 @@ import net.sf.json.JSONObject;
|
|
|
import net.sf.json.xml.XMLSerializer;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.checkerframework.checker.units.qual.A;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@ -7498,7 +7497,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
com.alibaba.fastjson.JSONObject jsonObject2 = xzzxEntranceService.saveDiagnosisToEntrance(outpatientDO.getRegisterNo(),diagnosisName,diagnosisCode);
|
|
|
logger.info("上传诊断返回参数"+jsonObject2);
|
|
|
//{"msg":"交易成功","code":"0","data":{"PresDetail":{"PresNo":"16151365"}},"success":"True"}
|
|
|
if (jsonObject2!=null&&jsonObject2.getString("code").equalsIgnoreCase("0")){
|
|
|
if (jsonObject2!=null&&jsonObject2.get("code")!=null&&jsonObject2.getString("code").equalsIgnoreCase("0")){
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = jsonObject2.getJSONObject("data");
|
|
|
logger.info("上传诊断成功"+jsonObject2);
|
|
|
}
|
|
@ -7508,7 +7507,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
com.alibaba.fastjson.JSONObject object = xzzxEntranceService.savePrescriptionToEntrance("0",outpatientDO.getCardNo(),outpatientDO.getRegisterNo(),outpatientDO.getDept(),applyDoctor,"50100",infoDOS);
|
|
|
logger.info("成功上传处方"+object);
|
|
|
//{"msg":"交易成功","code":"0","data":{"PresDetail":{"PresNo":"16151365"}},"success":"True"}
|
|
|
if (object!=null&&object.getString("code").equalsIgnoreCase("0")){
|
|
|
if (object!=null&&object.get("code")!=null&&object.getString("code").equalsIgnoreCase("0")){
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = object.getJSONObject("data");
|
|
|
com.alibaba.fastjson.JSONObject jsonObject1 = jsonObject.getJSONObject("PresDetail");
|
|
|
String realOrder = jsonObject1.getString("PresNo");
|