Commit 438c41cf45e99dfa32dc4aec6288b207d3022662
1 parent
f907ba7198
Exists in
master
and in
6 other branches
小程序儿童建档BUG修复
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
438c41c
... | ... | @@ -29,6 +29,7 @@ |
29 | 29 | import com.lyms.platform.pojo.*; |
30 | 30 | import com.lyms.platform.query.*; |
31 | 31 | import org.apache.commons.collections.CollectionUtils; |
32 | +import org.apache.commons.lang3.math.NumberUtils; | |
32 | 33 | import org.springframework.beans.factory.annotation.Autowired; |
33 | 34 | import org.springframework.beans.factory.annotation.Qualifier; |
34 | 35 | import org.springframework.data.domain.Sort; |
... | ... | @@ -5898,7 +5899,7 @@ |
5898 | 5899 | babyModelDb.setFetusCount(appRequest.getTai()); |
5899 | 5900 | babyModelDb.setDueCount(appRequest.getChan()); |
5900 | 5901 | babyModelDb.setDueType(appRequest.getFmtype()); |
5901 | - babyModelDb.setDueWeek(Integer.parseInt(appRequest.getDulWeek())); | |
5902 | + babyModelDb.setDueWeek(NumberUtils.isNumber(appRequest.getDulWeek())?Integer.valueOf(appRequest.getDulWeek()):null); | |
5902 | 5903 | babyModelDb.setMbirth(DateUtil.parseYMD(appRequest.getmBirth())); |
5903 | 5904 | //隆化-儿童建档户籍地 |
5904 | 5905 | babyModelDb.setBabyProvinceId(appRequest.getBabyProvinceId()); |