Commit f9905e0aadb3aea5bbb23f1b88714a63ae7e62d8
1 parent
18c0db68fd
Exists in
master
and in
7 other branches
修改产检删除
Showing 1 changed file with 10 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
f9905e0
... | ... | @@ -74,10 +74,7 @@ |
74 | 74 | */ |
75 | 75 | public String handHideBuild(String pid, String parentId, Integer userId) { |
76 | 76 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
77 | - //修改时不为空 | |
78 | - if (StringUtils.isNotEmpty(parentId)) { | |
79 | - return parentId; | |
80 | - } | |
77 | + | |
81 | 78 | List li = new ArrayList(); |
82 | 79 | li.add(hospitalId); |
83 | 80 | Patients patients = findOnePatient(null, null, null, li, 1, false, pid, true); |
... | ... | @@ -86,6 +83,13 @@ |
86 | 83 | return patients.getId(); |
87 | 84 | } |
88 | 85 | |
86 | + Patients patients1= patientsService.findOnePatientById(parentId); | |
87 | + | |
88 | + if(patients1.getHospitalId().equals(hospitalId)){ | |
89 | + return patients1.getId(); | |
90 | + } | |
91 | + | |
92 | + | |
89 | 93 | //表示区域的 |
90 | 94 | if (StringUtils.isNotEmpty(groupsFacade.findByCurrentUserId(hospitalId)) && StringUtils.isNotEmpty(pid)) { |
91 | 95 | patients = findOnePatient(null, null, null, null, 1, false, pid, false); |
... | ... | @@ -300,6 +304,8 @@ |
300 | 304 | //打印日志 |
301 | 305 | } |
302 | 306 | antExChuModel.setParentId(parentId); |
307 | + excAddRequest.setParentId(parentId); | |
308 | + | |
303 | 309 | } |
304 | 310 | antExChuModel.setOperator(userId); |
305 | 311 | if (StringUtils.isNotEmpty(antExChuModel.getId()) && StringUtils.isNotEmpty(antExChuModel.getParentId())) { |