Commit 14f63a52c746b72c2b008a314b7af854202c8ed6

Authored by jiangjiazhi
1 parent 0a41f8aabc

分娩作废产检劵

Showing 1 changed file with 10 additions and 12 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 14f63a5
... ... @@ -78,22 +78,20 @@
78 78 public String handHideBuild(String pid, String parentId, Integer userId, int type) {
79 79 String hospitalId = autoMatchFacade.getHospitalId(userId);
80 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   - }
89   - }
90   -
91 81 Patients patients1 = patientsService.findOnePatientById(parentId);
92   -
  82 + if(StringUtils.isEmpty(pid)){
  83 + pid=patients1.getPid();
  84 + }
  85 + List li = new ArrayList();
  86 + li.add(hospitalId);
  87 + patients = findOnePatient(null, null, null, li, type, false, pid, true);
  88 + //表示本院已经有隐藏建档
  89 + if (null != patients) {
  90 + return patients.getId();
  91 + }
93 92 if (patients1.getHospitalId().equals(hospitalId)) {
94 93 return patients1.getId();
95 94 }
96   -
97 95  
98 96 //表示区域的
99 97 if (StringUtils.isNotEmpty(groupsFacade.findByCurrentUserId(hospitalId)) && StringUtils.isNotEmpty(pid)) {