Commit b70f413b01c0eccee5a229dfeb8d3e415f5cff3c
1 parent
751d918be8
Exists in
master
and in
6 other branches
添加限制,没有录入分娩信息则不能录入产后复查数据。
Showing 1 changed file with 7 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
b70f413
... | ... | @@ -377,10 +377,14 @@ |
377 | 377 | postReviewQuery.setStart(patientsList.getFmDate()); |
378 | 378 | List<PostReviewModel> postReviewModels = postReviewService.findWithList(postReviewQuery); |
379 | 379 | String dueDate = ""; |
380 | - if (CollectionUtils.isNotEmpty(list)) { | |
381 | - dueDate = list.get(0).getDueDate(); | |
382 | - } else if (patientsList.getType() == 3) { | |
380 | + if (CollectionUtils.isEmpty(list)) { | |
381 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.BUSINESS_ERROR).setErrormsg("该孕妇没有录入分娩信息,不能进行复查"); | |
382 | + } | |
383 | + // 3-产妇 | |
384 | + if (patientsList.getType() == 3){ | |
383 | 385 | dueDate = DateUtil.getyyyy_MM_dd(patientsList.getFmDate()); |
386 | + } else { | |
387 | + dueDate = list.get(0).getDueDate(); | |
384 | 388 | } |
385 | 389 | HighScoreResult highScoreResult = examinationFacade.findLastRisk(patientsList.getPid(), false); |
386 | 390 |