wangzhinan 1 місяць тому
батько
коміт
59fdc2c4db

+ 5 - 1
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/HcyyPrescriptionService.java

@ -106,6 +106,8 @@ public class HcyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
    @Autowired
    private EnterpriseService enterpriseService;
    private PrescriptionInfoDao prescriptionInfoDao;
@ -2096,11 +2098,13 @@ public class HcyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
        WlyyOutpatientDO outpatientDO = outpatientDao.findById(outpatientId);
        String registerNo = outpatientDO.getRegisterNo();
        List<WlyyPrescriptionExpressageDO> prescriptionExpressageDOS = prescriptionExpressageDao.findByOutpatientId(outpatientId);
        WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findByRealOrder(realorder);
        List<WlyyPrescriptionInfoDO> infoDOS= prescriptionInfoDao.findByPrescriptionId(wlyyPrescriptionDO.getId(),1);
        WlyyPrescriptionExpressageDO expressageDO = new WlyyPrescriptionExpressageDO();
        if (prescriptionExpressageDOS!=null&&prescriptionExpressageDOS.size()!=0){
            expressageDO = prescriptionExpressageDOS.get(0);
        }
        if (expressageDO!=null){
        if (expressageDO!=null&&infoDOS!=null&&infoDOS.size()!=0){
            if (expressageDO.getOneselfPickupFlg()==0){
                WlyyHospitalSysDictDO hospitalSysDictDO = wlyyHospitalSysDictDao.findById("sendDrugsMessage");
                String content = "患者"+outpatientDO.getPatientName()+"的处方药品已下单,需要快递配送,请及时登录系统进行查看处理!";