Commit db02e302f21f6f8946abedcd9231acb1861a5fd7
1 parent
dd4a5e2baa
Exists in
master
and in
1 other branch
优惠券
Showing 1 changed file with 11 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
db02e30
... | ... | @@ -67,6 +67,16 @@ |
67 | 67 | if(pw != null && StringUtils.isNotEmpty(patientWeight.getBeforeWeight())) { |
68 | 68 | return RespBuilder.buildErro(ResponseCode.PATIENT_WEIGHT_IS_EXIST); |
69 | 69 | } |
70 | + | |
71 | + if(patients != null && !hospitalId.equals(patients.getHospitalId())) {// 隐藏建档 | |
72 | + patients.setId(null); | |
73 | + patients.setHospitalId(hospitalId); | |
74 | + patients.setEnable("2"); | |
75 | + patients.setSource(patientWeight.getPatientId()); | |
76 | + patients.setCreated(new Date()); | |
77 | + mongoTemplate.save(patients); | |
78 | + patientWeight.setPatientId(patients.getId()); | |
79 | + } | |
70 | 80 | Map<String, String> dayWeights = new HashMap<>(); |
71 | 81 | if(pw != null) { |
72 | 82 | if(MapUtils.isNotEmpty(pw.getDayWeights())) { |
... | ... | @@ -82,7 +92,7 @@ |
82 | 92 | } |
83 | 93 | |
84 | 94 | if(StringUtils.isEmpty(patientWeight.getId()) && patients != null) { |
85 | - antenatalExaminationFacade.handHideBuild(patients.getPid(), patients.getId(), userId, 1); | |
95 | +// antenatalExaminationFacade.handHideBuild(patients.getPid(), patients.getId(), userId, 1); | |
86 | 96 | |
87 | 97 | dayWeights.put(DateUtil.getyyyy_MM_dd(new Date()), nowWeight); |
88 | 98 | patientWeight.setPid(patients.getPid()); |