|
@ -5,6 +5,8 @@ import com.yihu.jw.doctor.service.excel.DoctorWorkTimeMainExcelDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
import com.yihu.jw.entity.hospital.message.SystemMessageDO;
|
|
import com.yihu.jw.entity.hospital.message.SystemMessageDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyOutpatientDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyOutpatientDO;
|
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionCheckDO;
|
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDiagnosisDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDiagnosisDO;
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
import com.yihu.jw.hospital.prescription.service.InspectionService;
|
|
import com.yihu.jw.hospital.prescription.service.InspectionService;
|
|
@ -1283,12 +1285,23 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
@RequestParam(required = true)Integer status,
|
|
@RequestParam(required = true)Integer status,
|
|
@ApiParam(name = "prescriptionId", value = "prescriptionId", required = true)
|
|
@ApiParam(name = "prescriptionId", value = "prescriptionId", required = true)
|
|
@RequestParam(required = true)String prescriptionId) throws Exception {
|
|
@RequestParam(required = true)String prescriptionId) throws Exception {
|
|
|
|
|
|
|
|
WlyyPrescriptionCheckDO wlyyPrescriptionCheckDO = prescriptionService.saveCheck(operate,operateName,reason,status,prescriptionId,wxId);
|
|
try {
|
|
try {
|
|
//String operate,String operateName,String reason,Integer status,String prescriptionId
|
|
|
|
return ObjEnvelop.getSuccess("ok",prescriptionService.saveCheck(operate,operateName,reason,status,prescriptionId,wxId));
|
|
|
|
} catch (Exception e) {
|
|
|
|
return ObjEnvelop.getError(e.getMessage());
|
|
|
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionService.findPrescriptionDo(prescriptionId);
|
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findOne(wlyyPrescriptionDO.getOutpatientId());
|
|
|
|
com.alibaba.fastjson.JSONObject msgObj = new com.alibaba.fastjson.JSONObject();
|
|
|
|
msgObj.put("outpatientid",wlyyPrescriptionDO.getOutpatientId());
|
|
|
|
msgObj.put("prescriptionId",prescriptionId);
|
|
|
|
msgObj.put("reason",reason);
|
|
|
|
String immsg = imService.pushPrescriptionBackMsg(msgObj,operate,operateName,wlyyPrescriptionDO.getOutpatientId(),wlyyOutpatientDO.getPatient(),wlyyOutpatientDO.getOutpatientType());
|
|
|
|
System.out.println("发送诊断消息成功:"+immsg);
|
|
|
|
}catch (Exception e){
|
|
|
|
System.out.println("发送诊断消息失败:"+e.getMessage());
|
|
|
|
// e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return ObjEnvelop.getSuccess("ok",wlyyPrescriptionCheckDO);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|