Commit 946130a3d2884ee1852467bcf3fc651d90eea235
1 parent
e81d85c7d1
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 9 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEvaluationCriterionServiceImpl.java
View file @
946130a
| ... | ... | @@ -1332,11 +1332,18 @@ |
| 1332 | 1332 | redressMonth=DateUtil.getBabyMonthAge(model.getBirth(), checkTime); |
| 1333 | 1333 | } |
| 1334 | 1334 | } |
| 1335 | - | |
| 1336 | 1335 | } |
| 1337 | 1336 | map.put("checkMonthStr",redressMonth); |
| 1338 | 1337 | }else { |
| 1339 | - map.put("checkMonthStr","早产纠正月龄:"+model.getMonthAge()); | |
| 1338 | + //大于2岁不在纠正 | |
| 1339 | + String redressMonth=model.getMonthAge(); | |
| 1340 | + if(redressMonth.indexOf("月")>0){ | |
| 1341 | + Integer age=Integer.valueOf(model.getMonthAge().substring(0, model.getMonthAge().indexOf("月"))); | |
| 1342 | + if(age>=24){ | |
| 1343 | + redressMonth=DateUtil.getBabyMonthAge(model.getBirth(), checkTime); | |
| 1344 | + } | |
| 1345 | + } | |
| 1346 | + map.put("checkMonthStr","早产纠正月龄:"+redressMonth); | |
| 1340 | 1347 | } |
| 1341 | 1348 | } |
| 1342 | 1349 | } |