|
@@ -400,6 +400,20 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ List<QcRuleWarn> qcRuleWarns = qcRuleWarnServiceImpl.list(new QueryWrapper<QcRuleWarn>()
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
+ .eq("behospital_code", analyzeVO.getBehospitalCode()));
|
|
|
+ if (qcRuleWarns != null && ListUtil.isNotEmpty(msgDTOList)) {
|
|
|
+ for (MsgDTO msgDTO : msgDTOList) {
|
|
|
+ for (QcRuleWarn qcRuleWarn:qcRuleWarns) {
|
|
|
+ if (msgDTO.getCasesEntryId().equals(qcRuleWarn.getCasesEntryId())) {
|
|
|
+ msgDTO.setIsSend(2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
// 根据模块分组
|
|
|
Map<String, List<MsgDTO>> msgMap = EntityUtil.makeEntityListMap(msgDTOList, "modelName");
|
|
|
res.put("msg", msgMap);
|