Browse Source

类型转换

wangjun 4 years ago
parent
commit
3aa239f1a8

+ 3 - 3
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -2622,9 +2622,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
                            ykyyService.updateDrugorderInfo(businessOrderDO.getOrderNo(), wlyyPrescriptionDO.getOrderId(), wlyyPrescriptionDO.getRealOrder());
                            ykyyService.updateDrugorderInfo(businessOrderDO.getOrderNo(), wlyyPrescriptionDO.getOrderId(), wlyyPrescriptionDO.getRealOrder());
                        }
                        }
                    }
                    }
                    SmsTemplateDO smsTemplateDO =  smsTemplateDao.findByClientId("prescription_remind");
                    /*if (smsTemplateDO!=null){
                        String content = smsTemplateDO.getContent().replace("{{病人姓名}}",outpatientDO.getPatientName()).replace("")
                    /*SmsTemplateDO smsTemplateDO =  smsTemplateDao.findByClientId("prescription_remind");
                    if (smsTemplateDO!=null){
                        String content = smsTemplateDO.getContent().replace("{{病人姓名}}",outpatientDO.getPatientName()).replace("{{时间}}",Da)
                    }*/
                    }*/
                }
                }

+ 1 - 1
business/base-service/src/main/java/com/yihu/jw/order/BusinessOrderService.java

@ -888,7 +888,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
                                   WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(wlyyPrescriptionDO.getOutpatientId());
                                   WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(wlyyPrescriptionDO.getOutpatientId());
                                    SmsTemplateDO smsTemplateDO = smsTemplateDao.findByClientId("oneself_pick");
                                    SmsTemplateDO smsTemplateDO = smsTemplateDao.findByClientId("oneself_pick");
                                    if (smsTemplateDO!=null){
                                    if (smsTemplateDO!=null){
                                        String content = smsTemplateDO.getContent().replace("{{病人姓名}}",wlyyOutpatientDO.getPatientName()).replace("{{时间}}",DateUtil.dateToStrLong(wlyyPrescriptionDO.getCreateTime())).replace("{{门诊号码}}",wlyyPrescriptionDO.getRealOrder());
                                        String content = smsTemplateDO.getContent().replace("{{病人姓名}}",wlyyOutpatientDO.getPatientName()).replace("{{时间}}",DateUtil.dateToStrLong(wlyyPrescriptionDO.getCreateTime())).replace("{{门诊号码}}",wlyyOutpatientDO.getRealOrder());
                                        ykyySMSService.ykyySendSMS(wlyyOutpatientDO.getConsumerMobile(),smsTemplateDO.getHeader()+content);
                                        ykyySMSService.ykyySendSMS(wlyyOutpatientDO.getConsumerMobile(),smsTemplateDO.getHeader()+content);
                                    }
                                    }