Browse Source

复诊列表时间格式错误

huangwenjie 5 years ago
parent
commit
80e0197bc9

+ 17 - 1
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/prescription/PrescriptionEndpoint.java

@ -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.hospital.message.SystemMessageDO;
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.hospital.prescription.dao.OutpatientDao;
import com.yihu.jw.hospital.prescription.service.InspectionService;
@ -1278,7 +1280,21 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
            @RequestParam(required = true)String prescriptionId) throws Exception {
        try {
            //String operate,String operateName,String reason,Integer status,String prescriptionId
            return ObjEnvelop.getSuccess("ok",prescriptionService.saveCheck(operate,operateName,reason,status,prescriptionId));
            WlyyPrescriptionCheckDO wlyyPrescriptionCheckDO = prescriptionService.saveCheck(operate,operateName,reason,status,prescriptionId);
            try {
//                WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionService.
//                com.alibaba.fastjson.JSONObject msgObj = new com.alibaba.fastjson.JSONObject();
//                msgObj.put("reason",zd_str);
//                msgObj.put("outpatientid",jl_str);
//                msgObj.put("prescriptionId",prescriptionId);
//                WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findOne(outPatientId);
//                String immsg = imService.pushHuiZhenMsg(msgObj,wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getDoctorName(),outPatientId,wlyyOutpatientDO.getPatient(),wlyyOutpatientDO.getOutpatientType());
//                System.out.println("发送诊断消息成功:"+immsg);
            }catch (Exception e){
                System.out.println("发送诊断消息失败:"+e.getMessage());
//            e.printStackTrace();
            }
            return ObjEnvelop.getSuccess("ok",wlyyPrescriptionCheckDO);
        } catch (Exception e) {
            return ObjEnvelop.getError(e.getMessage());
        }