Commit e97e9f71f2f132e2c93180f3e2ea32cfd242c68f

Authored by liquanyu
1 parent b0572e8bb4

儿童管理

Showing 1 changed file with 15 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java View file @ e97e9f7
... ... @@ -1274,10 +1274,22 @@
1274 1274 result.setPatientId(model.getParentId());
1275 1275  
1276 1276 String diagnose = "";
1277   - if (!StringUtils.isEmpty(model.getDiagnose())) {
1278   - List diagList = JsonUtil.toList(model.getDiagnose(), List.class);
  1277 +// if (!StringUtils.isEmpty(model.getDiagnose())) {
  1278 +// List diagList = JsonUtil.toList(model.getDiagnose(), List.class);
  1279 +// if (CollectionUtils.isNotEmpty(diagList)) {
  1280 +// diagnose = "";
  1281 +// for (Object obj : diagList) {
  1282 +// BasicConfig basicConfig = basicConfigService.getOneBasicConfigById((String) obj);
  1283 +// if (basicConfig != null) {
  1284 +// diagnose += basicConfig.getName() + " ";
  1285 +// }
  1286 +// }
  1287 +// }
  1288 +// }
  1289 + if (StringUtils.isNotEmpty(model.getPid()))
  1290 + {
  1291 + List diagList = babyCheckFacade.getBabyLastDiagnose(model.getPid());
1279 1292 if (CollectionUtils.isNotEmpty(diagList)) {
1280   - diagnose = "";
1281 1293 for (Object obj : diagList) {
1282 1294 BasicConfig basicConfig = basicConfigService.getOneBasicConfigById((String) obj);
1283 1295 if (basicConfig != null) {