Commit fcfdd7071f10761e9d792f7494b60a36f81652ed
1 parent
1edfb64415
Exists in
master
and in
6 other branches
终止妊娠
Showing 1 changed file with 9 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/StopPregnancyFacade.java
View file @
fcfdd70
| ... | ... | @@ -191,12 +191,15 @@ |
| 191 | 191 | //终止妊娠状态 |
| 192 | 192 | patient.setDueStatus(1); |
| 193 | 193 | |
| 194 | - //更新状态为过期 | |
| 195 | - //判断其为增值服务还是 标准服务 | |
| 196 | - if (patient.getServiceType() == ServiceTypeEnums.STANDARD_SERVICE.getId()) { | |
| 197 | - patient.setServiceStatus(ServiceStatusEnums.STANDARD_OVERDUE.getId()); | |
| 198 | - } else if (patient.getServiceType() == ServiceTypeEnums.ADD_SERVICE.getId()) { | |
| 199 | - patient.setServiceStatus(ServiceStatusEnums.ADD_OVERDUE.getId()); | |
| 194 | + if (patient.getServiceType() != null) | |
| 195 | + { | |
| 196 | + //更新状态为过期 | |
| 197 | + //判断其为增值服务还是 标准服务 | |
| 198 | + if (patient.getServiceType() == ServiceTypeEnums.STANDARD_SERVICE.getId()) { | |
| 199 | + patient.setServiceStatus(ServiceStatusEnums.STANDARD_OVERDUE.getId()); | |
| 200 | + } else if (patient.getServiceType() == ServiceTypeEnums.ADD_SERVICE.getId()) { | |
| 201 | + patient.setServiceStatus(ServiceStatusEnums.ADD_OVERDUE.getId()); | |
| 202 | + } | |
| 200 | 203 | } |
| 201 | 204 | |
| 202 | 205 | patient.setFmDate(DateUtil.parseYMD(request.getStopDate())); |