瀏覽代碼

代码修改

yeshijie 7 年之前
父節點
當前提交
70dbc7610e
共有 1 個文件被更改,包括 12 次插入12 次删除
  1. 12 12
      patient-co-service/wlyy_device/src/main/java/com/yihu/hos/device/service/AsyncService.java

+ 12 - 12
patient-co-service/wlyy_device/src/main/java/com/yihu/hos/device/service/AsyncService.java

@ -272,18 +272,18 @@ public class AsyncService extends BaseService{
            }*/
        }
        // 查询病人三师签约中的健康管理师
        SignFamily signFamilySS = signFamilyDao.findBySanshiPatientYes(patientCode);
        if (signFamilySS != null) {
            String healthDoctorTeam = signFamilySS.getDoctorHealth();
            // 判断是否是否是同一个健康管理师
            if (StringUtils.isNotEmpty(healthDoctorTeam) && !StringUtils.equals(healthDoctorFamily, healthDoctorTeam)) {
                // 添加到消息接收人列表
                receivers.add(healthDoctorTeam);
            }
            if (StringUtils.isNotEmpty(signFamilySS.getDoctor())&& !StringUtils.equals(doctorFamily, signFamilySS.getDoctor())){
                receivers.add(signFamilySS.getDoctor());
            }
        }
//        SignFamily signFamilySS = signFamilyDao.findBySanshiPatientYes(patientCode);
//        if (signFamilySS != null) {
//            String healthDoctorTeam = signFamilySS.getDoctorHealth();
//            // 判断是否是否是同一个健康管理师
//            if (StringUtils.isNotEmpty(healthDoctorTeam) && !StringUtils.equals(healthDoctorFamily, healthDoctorTeam)) {
//                // 添加到消息接收人列表
//                receivers.add(healthDoctorTeam);
//            }
//            if (StringUtils.isNotEmpty(signFamilySS.getDoctor())&& !StringUtils.equals(doctorFamily, signFamilySS.getDoctor())){
//                receivers.add(signFamilySS.getDoctor());
//            }
//        }
        List<Message> messages = new ArrayList<Message>();
        JSONArray array = new JSONArray();