Commit f88a957e09a67fb5657d31aa1893524705377772
1 parent
2c5358e638
Exists in
master
and in
6 other branches
儿童建档
Showing 1 changed file with 6 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
f88a957
... | ... | @@ -1028,7 +1028,12 @@ |
1028 | 1028 | private BabyModel getBabyModel(BabyBookbuildingAddRequest b,boolean isAdd) { |
1029 | 1029 | // hujiaqi添加了一个字段,判断是插入还是更新,如果是更新,就不更新birth字段 |
1030 | 1030 | BabyModel bm = new BabyModel(); |
1031 | - bm.setDataStatus(0); | |
1031 | + | |
1032 | + if (b.getDataStatus() != null && b.getDataStatus() == 1) | |
1033 | + { | |
1034 | + bm.setDataStatus(0); | |
1035 | + } | |
1036 | + | |
1032 | 1037 | bm.setFileCode(b.getFileCode()); |
1033 | 1038 | bm.setBabyHighRiskReason(b.getBabyHighRiskReason()); |
1034 | 1039 | bm.setmHighRiskReason(b.getmHighRiskReason()); |