Commit 62c53249cf96d2dcae9aca00761cbbc2cf8978d2
1 parent
36e6d390cc
Exists in
master
and in
6 other branches
产筛
Showing 1 changed file with 14 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SieveFacade.java
View file @
62c5324
| ... | ... | @@ -638,6 +638,8 @@ |
| 638 | 638 | |
| 639 | 639 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
| 640 | 640 | |
| 641 | + | |
| 642 | + | |
| 641 | 643 | PatientsQuery patientsQuery = new PatientsQuery(); |
| 642 | 644 | patientsQuery.setHospitalId(hospitalId); |
| 643 | 645 | patientsQuery.setYn(YnEnums.YES.getId()); |
| ... | ... | @@ -679,6 +681,18 @@ |
| 679 | 681 | HighScoreResult highScoreResult = antenatalExaminationFacade.findLastRisk(pat.getPid(), false); |
| 680 | 682 | PatientBaseResult patientBaseResult = new PatientBaseResult(); |
| 681 | 683 | if (null != pat) { |
| 684 | + | |
| 685 | + SieveApplyOrderQuery sieveApplyOrderQuery1 = new SieveApplyOrderQuery(); | |
| 686 | + sieveApplyOrderQuery1.setParentId(pat.getId()); | |
| 687 | + sieveApplyOrderQuery1.setHospitalId(hospitalId); | |
| 688 | + sieveApplyOrderQuery1.setYn(YnEnums.YES.getId()); | |
| 689 | + | |
| 690 | + List<SieveApplyOrderModel> list = applyOrderService.querySieveApplyOrderWithQuery(sieveApplyOrderQuery1); | |
| 691 | + if (CollectionUtils.isNotEmpty(list)) | |
| 692 | + { | |
| 693 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.DATA_EXIST).setErrormsg("已申请过产筛!"); | |
| 694 | + } | |
| 695 | + | |
| 682 | 696 | patientBaseResult.convert(pat); |
| 683 | 697 | } |
| 684 | 698 | patientBaseResult.setRiskFactor(highScoreResult.getHighRisk()); |