|
@ -1139,4 +1139,37 @@ public class PrescriptionService extends ZysoftBaseService{
|
|
|
//添加日志
|
|
|
return addZyPushLog(data,"cancelPrescription","接收订单退费消息",error,"POST",status,"1",errMsg);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取长处方相关数据状态接口
|
|
|
* @param type 数据类型:1:挂号数据;2:处方数据;3:结算数据
|
|
|
* @param prescriptionCode 长处方CODE
|
|
|
* @return
|
|
|
*/
|
|
|
public String getDataStatus(String type, String prescriptionCode) throws Exception{
|
|
|
Prescription prescription = prescriptionDao.findByCode(prescriptionCode);
|
|
|
String[] hospitalMapping = getHospitalMapping(prescription.getHospital()); //获取机构映射
|
|
|
String hospital = hospitalMapping[0];
|
|
|
String licence = hospitalMapping[1];
|
|
|
|
|
|
Map<String,String> header = new HashMap<>();
|
|
|
header.put("ORGCODE",hospital);
|
|
|
header.put("LICENCE",licence);
|
|
|
|
|
|
String id = "";
|
|
|
|
|
|
if("1".equals(type)){
|
|
|
id = prescription.getVisitNo();
|
|
|
}else if("2".equals(type)){
|
|
|
id = prescription.getRecipeNo();
|
|
|
}else{}
|
|
|
|
|
|
Map<String,String> params = new HashMap<>();
|
|
|
params.put("type",type);
|
|
|
params.put("id",id);
|
|
|
|
|
|
String response = postSecond("getDataStatus","获取长处方相关数据状态接口",params,null,header,false,2,"2");
|
|
|
|
|
|
return response;
|
|
|
}
|
|
|
}
|