Commit 3efedf6dd2644260e09358f657afe784c442c285

Authored by yangfei
1 parent 95db385d15

产检提醒推送

Showing 1 changed file with 5 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 3efedf6
... ... @@ -343,7 +343,6 @@
343 343 commonThreadPool.execute(new Runnable() {
344 344 @Override
345 345 public void run() {
346   - Patients patients = patientsService.findOnePatientById(antExamModel.getParentId());
347 346 try {
348 347 //更新主档案或者子档案下次预约时间冗余到patient表的数据
349 348 patientsService.updateNextCheckTime(DateUtil.getyyyy_MM_dd(antExamModel.getNextCheckTime()), antExamModel.getParentId());
... ... @@ -393,7 +392,8 @@
393 392 e.printStackTrace();
394 393 }
395 394 try{
396   - createSendMsg(patients);
  395 + //发送推送短信
  396 + createSendMsg(antExamModel.getParentId());
397 397 }catch (Exception e){
398 398 e.printStackTrace();
399 399 }
... ... @@ -650,8 +650,8 @@
650 650 * 产检生成推送消息:只针对标准服务的用户
651 651 *
652 652 */
653   - private void createSendMsg(Patients patient) {
654   -
  653 + private void createSendMsg(String patientId) {
  654 + Patients patient = patientsService.findOnePatientById(patientId);
655 655 //判断医院是否启动和对应的服务项是否启用
656 656 SmsConfigModel configModel = new SmsConfigModel();
657 657 int startType = smsConfigFacade.hospitalIsStart(patient.getHospitalId(), configModel, SmsServiceEnums.FWDGTX.getId());
... ... @@ -831,7 +831,7 @@
831 831 }
832 832  
833 833 try{
834   - createSendMsg(patients);
  834 + createSendMsg(patients.getId());
835 835 }catch (Exception e){
836 836 e.printStackTrace();
837 837 }