Commit e9e152ccbe844a391f83c4c62085134c6360e8ce
1 parent
15d20c267e
Exists in
master
and in
8 other branches
配置接口修改
Showing 1 changed file with 11 additions and 9 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/SmsConfigService.java
View file @
e9e152c
| ... | ... | @@ -56,21 +56,23 @@ |
| 56 | 56 | |
| 57 | 57 | if (CollectionUtils.isNotEmpty(list)) |
| 58 | 58 | { |
| 59 | + boolean isExist = false; | |
| 59 | 60 | for (Map dept : list) |
| 60 | 61 | { |
| 61 | 62 | if (deptId != null && String.valueOf(deptId).equals(String.valueOf(dept.get("deptId")))) |
| 62 | 63 | { |
| 63 | 64 | dept.put("deptPrefix",deptPrefix); |
| 65 | + isExist = true; | |
| 64 | 66 | } |
| 65 | - else | |
| 66 | - { | |
| 67 | - Map preMap = new HashMap(); | |
| 68 | - preMap.put("deptPrefix",deptPrefix); | |
| 69 | - preMap.put("deptId",deptId); | |
| 70 | - preMap.put("hospitalId",hid); | |
| 71 | - list.add(preMap); | |
| 72 | - break; | |
| 73 | - } | |
| 67 | + | |
| 68 | + } | |
| 69 | + if (!isExist) | |
| 70 | + { | |
| 71 | + Map preMap = new HashMap(); | |
| 72 | + preMap.put("deptPrefix",deptPrefix); | |
| 73 | + preMap.put("deptId",deptId); | |
| 74 | + preMap.put("hospitalId",hid); | |
| 75 | + list.add(preMap); | |
| 74 | 76 | } |
| 75 | 77 | |
| 76 | 78 | } |