Commit 202c065be90de078ad32e8e221d48eb773ac7750
1 parent
707dbf1668
Exists in
master
and in
6 other branches
修复bug
Showing 1 changed file with 3 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEvaluationCriterionServiceImpl.java
View file @
202c065
... | ... | @@ -164,6 +164,7 @@ |
164 | 164 | |
165 | 165 | List<BabyEvaluationCriterionModel > babyEvaluationCriterionModels = mongoTemplate.find(query, BabyEvaluationCriterionModel.class); |
166 | 166 | Map<Integer, List<BabyEvaluationCriterionModel>> listGroup = getListGroup(babyEvaluationCriterionModels); |
167 | + List<Map<String, Object>> listGroupMaps = new LinkedList<>(); | |
167 | 168 | Set<Map.Entry<Integer, List<BabyEvaluationCriterionModel>>> entries = listGroup.entrySet(); |
168 | 169 | for (Map.Entry<Integer, List<BabyEvaluationCriterionModel>> entry : entries) { |
169 | 170 | Map<String, Object> map = new HashMap<>(); |
... | ... | @@ -196,6 +197,7 @@ |
196 | 197 | } |
197 | 198 | map.put("projectType", entry.getKey()); |
198 | 199 | map.put("detailList", list); |
200 | + listGroupMaps.add(map); | |
199 | 201 | } |
200 | 202 | |
201 | 203 | int developmentQuotient = 0; |
... | ... | @@ -209,7 +211,7 @@ |
209 | 211 | // 配置对应的月龄 |
210 | 212 | objectMap.put("month", currentMonth); |
211 | 213 | // 领域组 |
212 | - objectMap.put("listGroup", listGroup); | |
214 | + objectMap.put("listGroup", listGroupMaps); | |
213 | 215 | BabyEvaluationCriterionModel criterionModel = mongoTemplate.findOne(Query.query(Criteria.where("type").is(2). |
214 | 216 | and("minBorder").lte(developmentQuotient).and("maxBorder").gte(developmentQuotient)), BabyEvaluationCriterionModel.class); |
215 | 217 | String aptitudeName = null,levelName = null; |