Commit 0a41f8aabc9566414b928060f6b2f414cef7b2d8
1 parent
c06e84cf99
Exists in
master
and in
7 other branches
分娩作废产检劵
Showing 1 changed file with 9 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
0a41f8a
... | ... | @@ -77,13 +77,15 @@ |
77 | 77 | */ |
78 | 78 | public String handHideBuild(String pid, String parentId, Integer userId, int type) { |
79 | 79 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
80 | - | |
81 | - List li = new ArrayList(); | |
82 | - li.add(hospitalId); | |
83 | - Patients patients = findOnePatient(null, null, null, li, type, false, pid, true); | |
84 | - //表示本院已经有隐藏建档 | |
85 | - if (null != patients) { | |
86 | - return patients.getId(); | |
80 | + Patients patients=null; | |
81 | + if(StringUtils.isNotEmpty(pid)){ | |
82 | + List li = new ArrayList(); | |
83 | + li.add(hospitalId); | |
84 | + patients = findOnePatient(null, null, null, li, type, false, pid, true); | |
85 | + //表示本院已经有隐藏建档 | |
86 | + if (null != patients) { | |
87 | + return patients.getId(); | |
88 | + } | |
87 | 89 | } |
88 | 90 | |
89 | 91 | Patients patients1 = patientsService.findOnePatientById(parentId); |