Commit 1233a24af12b17bb3b7a1e817e3b5b99c69c8c24
1 parent
4878d58624
Exists in
master
and in
1 other branch
孕妇修改
Showing 1 changed file with 6 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
1233a24
... | ... | @@ -113,9 +113,10 @@ |
113 | 113 | } |
114 | 114 | |
115 | 115 | Integer type = 1; //1孕妇 2儿童 3产妇 |
116 | + Date date = null; | |
116 | 117 | if (yunRequest.getLastMenstrualPeriod() != null) |
117 | 118 | { |
118 | - Date date = DateUtil.addWeek(DateUtil.parseYMD(yunRequest.getLastMenstrualPeriod()),42); | |
119 | + date = DateUtil.addWeek(DateUtil.parseYMD(yunRequest.getLastMenstrualPeriod()),42); | |
119 | 120 | Date currentDate = DateUtil.formatDate(new Date()); |
120 | 121 | if (date.getTime() <= currentDate.getTime()) |
121 | 122 | { |
... | ... | @@ -168,6 +169,10 @@ |
168 | 169 | //1孕妇 3 产妇 |
169 | 170 | patient.setType(type); |
170 | 171 | patient.setBuildType(0); |
172 | + if (type == 3 && date != null) | |
173 | + { | |
174 | + patient.setFmDate(date); | |
175 | + } | |
171 | 176 | if (resperson != null) |
172 | 177 | { |
173 | 178 | patient.setPid(resperson.getId()); |