Commit 7ba7961d7357012a5a7366aa779a7691ca13ceeb
1 parent
5fca73720b
Exists in
master
and in
6 other branches
民生工程数据接口-新生儿信息(从)C401 出生次序默认1
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LivelihoodProjectsFacade.java
View file @
7ba7961
... | ... | @@ -1129,7 +1129,11 @@ |
1129 | 1129 | //Apgar10分钟 |
1130 | 1130 | map.put("apgar10", null); |
1131 | 1131 | //出生次序 |
1132 | - map.put("birth_order", StringUtils.isNotEmpty(baby.getCftc())?baby.getCftc():"/"); | |
1132 | + Integer birth_order=1; | |
1133 | + if(StringUtils.isNotEmpty(baby.getCftc()) && NumberUtils.isNumber(baby.getCftc())){ | |
1134 | + birth_order=Integer.parseInt(baby.getCftc()); | |
1135 | + } | |
1136 | + map.put("birth_order", birth_order); | |
1133 | 1137 | //健康状态(系统没有字段 默认1良好) |
1134 | 1138 | map.put("health_state_code", "1"); |
1135 | 1139 | //出生缺陷 |