Commit cacded5fffb44e09da034db0cf3a52083f1a30fb
1 parent
96bb56cd83
Exists in
master
and in
1 other branch
改字段
Showing 2 changed files with 20 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
cacded5
| ... | ... | @@ -2135,7 +2135,7 @@ |
| 2135 | 2135 | Iterator<Map.Entry<String, List<String>>> iterator = treatmentOpinion2.entrySet().iterator(); |
| 2136 | 2136 | while (iterator.hasNext()) { |
| 2137 | 2137 | Map.Entry<String, List<String>> map = iterator.next(); |
| 2138 | - restTreatmentOpinion2.put(map.getKey(), mongoUtil.findPlatValueList(map.getValue())); | |
| 2138 | + restTreatmentOpinion2.put(map.getKey(), mongoUtil.findPlatValueList2(map.getValue())); | |
| 2139 | 2139 | } |
| 2140 | 2140 | } |
| 2141 | 2141 | antenatalExaminationResult.setTreatmentOpinion2(restTreatmentOpinion2); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java
View file @
cacded5
| ... | ... | @@ -316,6 +316,25 @@ |
| 316 | 316 | return rest; |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | + public List<Map<String, Object>> findPlatValueList2(List<String> ids) { | |
| 320 | + if(CollectionUtils.isEmpty(ids)) { | |
| 321 | + return new ArrayList<>(); | |
| 322 | + } | |
| 323 | + List<Map<String, Object>> rest = new ArrayList<>(); | |
| 324 | + for (String id : ids) { | |
| 325 | + PlantformConfigModel platformConfig = getPlatformConfig(id); | |
| 326 | + if(platformConfig != null) { | |
| 327 | + Map<String, Object> tempMap = new HashedMap(); | |
| 328 | + tempMap.put("id", platformConfig.getId().toString()); | |
| 329 | + tempMap.put("typeName", platformConfig.getValue()); | |
| 330 | + tempMap.put("serchKey", platformConfig.getSerchKey()); | |
| 331 | + tempMap.put("value", platformConfig.getValue()); | |
| 332 | + rest.add(tempMap); | |
| 333 | + } | |
| 334 | + } | |
| 335 | + return rest; | |
| 336 | + } | |
| 337 | + | |
| 319 | 338 | public PlantformConfigModel findPlatFormById(String id) { |
| 320 | 339 | return mongoTemplate.findById(id, PlantformConfigModel.class); |
| 321 | 340 | } |