Commit 6e795d9ef19a96b4f7528052b5321c56fd970644
1 parent
e6f0230662
Exists in
master
and in
6 other branches
绑定医生和患者的关系
Showing 1 changed file with 4 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
6e795d9
... | ... | @@ -159,17 +159,15 @@ |
159 | 159 | // 绑定医生和患者的关系 |
160 | 160 | String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); |
161 | 161 | Map<String, String> param = new HashMap<>(); |
162 | - param.put("doctorId", userId + ""); | |
162 | + param.put("doctorName", couponMapper.findUserName(userId + "")); | |
163 | 163 | param.put("patientId", patients.getId()); |
164 | - patSerSyncUrl = "http://localhost:9092"; | |
165 | -// String s = HttpClientUtil.doPost(patSerSyncUrl + "/grWeContr/bindDoctorUser", param, "UTF-8"); | |
166 | - String s = HttpClientUtil.doPost("http://localhost:9092/grWeContr/bindDoctorUser", param, "UTF-8"); | |
164 | + param.put("hospitalName", couponMapper.findHospitalNameById(hospitalId)); | |
165 | + String s = HttpClientUtil.doPost(patSerSyncUrl + "/grWeContr/bindDoctorUser", param, "UTF-8"); | |
166 | +// String s = HttpClientUtil.doPost("http://localhost:9092/grWeContr/bindDoctorUser", param, "UTF-8"); | |
167 | 167 | System.out.println("绑定医生和患者的关系>>. " + s + " param: " + param); |
168 | 168 | return RespBuilder.buildSuccess(patientWeight.getId()); |
169 | 169 | } else { |
170 | 170 | patientWeight.setOperaterId(userId.toString()); |
171 | -// Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(patientWeight)); | |
172 | -// mongoTemplate.updateFirst(Query.query(Criteria.where("id").is(patientWeight.getId())), update, PatientWeight.class); | |
173 | 171 | patientWeightService2.update(Query.query(Criteria.where("id").is(patientWeight.getId())), patientWeight); |
174 | 172 | return RespBuilder.buildSuccess(patientWeight.getId()); |
175 | 173 | } |