From 6e795d9ef19a96b4f7528052b5321c56fd970644 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Tue, 24 Oct 2017 17:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=8C=BB=E7=94=9F=E5=92=8C?= =?UTF-8?q?=E6=82=A3=E8=80=85=E7=9A=84=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate/web/service/impl/PatientWeightServiceImpl.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java index 521a000..c0bc853 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java @@ -159,17 +159,15 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient // 绑定医生和患者的关系 String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); Map param = new HashMap<>(); - param.put("doctorId", userId + ""); + param.put("doctorName", couponMapper.findUserName(userId + "")); param.put("patientId", patients.getId()); - patSerSyncUrl = "http://localhost:9092"; -// String s = HttpClientUtil.doPost(patSerSyncUrl + "/grWeContr/bindDoctorUser", param, "UTF-8"); - String s = HttpClientUtil.doPost("http://localhost:9092/grWeContr/bindDoctorUser", param, "UTF-8"); + param.put("hospitalName", couponMapper.findHospitalNameById(hospitalId)); + String s = HttpClientUtil.doPost(patSerSyncUrl + "/grWeContr/bindDoctorUser", param, "UTF-8"); +// String s = HttpClientUtil.doPost("http://localhost:9092/grWeContr/bindDoctorUser", param, "UTF-8"); System.out.println("绑定医生和患者的关系>>. " + s + " param: " + param); return RespBuilder.buildSuccess(patientWeight.getId()); } else { patientWeight.setOperaterId(userId.toString()); -// Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(patientWeight)); -// mongoTemplate.updateFirst(Query.query(Criteria.where("id").is(patientWeight.getId())), update, PatientWeight.class); patientWeightService2.update(Query.query(Criteria.where("id").is(patientWeight.getId())), patientWeight); return RespBuilder.buildSuccess(patientWeight.getId()); } -- 1.8.3.1