Commit ca0877e95ac87fa25f6f4a302dddc3446fe6421f
1 parent
2aa0e18e92
Exists in
master
and in
7 other branches
修改产检删除
Showing 1 changed file with 18 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
ca0877e
| ... | ... | @@ -169,13 +169,25 @@ |
| 169 | 169 | */ |
| 170 | 170 | public BaseResponse addOneAntEx(AntExAddRequest antExAddRequest, Integer userId) { |
| 171 | 171 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
| 172 | + AntenatalExaminationModel model = antExAddRequest.convertToDataModel(); | |
| 173 | + //表示区域的 | |
| 174 | + if (StringUtils.isNotEmpty(groupsFacade.findByCurrentUserId(hospitalId))) { | |
| 175 | + String parentId = handHideBuild(antExAddRequest.getPid(), antExAddRequest.getParentId(), userId); | |
| 176 | + if (StringUtils.isEmpty(parentId)) { | |
| 177 | + //打印日志 | |
| 178 | + } | |
| 179 | + model.setParentId(parentId); | |
| 180 | + antExAddRequest.setParentId(parentId); | |
| 181 | + } | |
| 182 | + | |
| 183 | + | |
| 172 | 184 | if (StringUtils.isNotEmpty(antExAddRequest.getId())) { |
| 173 | - AntenatalExaminationModel antenatalExamination = antExAddRequest.convertToDataModel(); | |
| 174 | - antenatalExamination.setHospitalId(hospitalId); | |
| 175 | - antenatalExamination.setOperator(userId); | |
| 176 | - antenatalExaminationService.updateOneAnt(antenatalExamination, antExAddRequest.getId()); | |
| 185 | + | |
| 186 | + model.setHospitalId(hospitalId); | |
| 187 | + model.setOperator(userId); | |
| 188 | + antenatalExaminationService.updateOneAnt(model, antExAddRequest.getId()); | |
| 177 | 189 | //修改申请单状态 |
| 178 | - updateApplyOrder(antenatalExamination, antExAddRequest.getParentId()); | |
| 190 | + updateApplyOrder(model, antExAddRequest.getParentId()); | |
| 179 | 191 | |
| 180 | 192 | Patients patients = patientsService.findOnePatientById(antExAddRequest.getParentId()); |
| 181 | 193 | |
| ... | ... | @@ -195,7 +207,7 @@ |
| 195 | 207 | //复诊,修改产检管理 |
| 196 | 208 | antenatalExaminationService.updateAntExRecord(antExAddRequest.getId(), 2); |
| 197 | 209 | } else { |
| 198 | - AntenatalExaminationModel model = antExAddRequest.convertToDataModel(); | |
| 210 | + | |
| 199 | 211 | model.setOperator(userId); |
| 200 | 212 | model.setYn(YnEnums.YES.getId()); |
| 201 | 213 | model.setHospitalId(hospitalId); |
| ... | ... | @@ -226,7 +238,6 @@ |
| 226 | 238 | // updatePatientRiskLevel(model, patients); |
| 227 | 239 | |
| 228 | 240 | updateLastRisk(antExAddRequest.getParentId()); |
| 229 | - | |
| 230 | 241 | |
| 231 | 242 | //修改本院最后一次定义高危 |
| 232 | 243 | updateLastRhTime(patients.getId(), hospitalId); |