From a0648c47f21540206d6f3478495a1e98cc3b5df4 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Mon, 18 Dec 2017 14:06:08 +0800 Subject: [PATCH] 1 --- .../web/service/impl/PatientWeightServiceImpl.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 6eba24f..a5f6c62 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 @@ -86,7 +86,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient // 绑定医生和患者的关系 String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); - Map param = new HashMap<>(); + Map param = new LinkedHashMap<>(); param.put("doctorName", couponMapper.findUserName(userId + "")); param.put("patientId", patients.getId()); param.put("hospitalName", couponMapper.findHospitalNameById(hospitalId)); @@ -134,7 +134,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient } } if(flag) { - Map m = new HashMap<>(); + Map m = new LinkedHashMap<>(); m.put("hospitalId", hospitalId); m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); m.put("date", ymdDate); @@ -163,7 +163,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient // mongoTemplate.save(patientWeight); - Map m = new HashMap<>(); + Map m = new LinkedHashMap<>(); m.put("hospitalId", hospitalId); m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); m.put("date", DateUtil.getyyyy_MM_dd(new Date())); @@ -303,7 +303,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient List> weightInfo = new ArrayList<>(); List betweenDay = DateUtil.getBetweenDay(7); for (String date : betweenDay) { - Map temp = new HashMap<>(); + Map temp = new LinkedHashMap<>(); weightInfo.add(temp); temp.put("id", date); for (Map map : patientWeight.getDayWeights2()) { @@ -450,7 +450,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient } } if(flag) { - Map m = new HashMap<>(); + Map m = new LinkedHashMap<>(); m.put("hospitalId", hospitalId); m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); m.put("date", ymdDate); @@ -464,7 +464,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient } if(StringUtils.isNotEmpty(nowWeight)) { - Map m = new HashMap<>(); + Map m = new LinkedHashMap<>(); m.put("hospitalId", hospitalId); m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); m.put("date", ymdDate); @@ -494,7 +494,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient String dayWeigthsJson = patientWeight.getDayWeigthsJson(); JSONObject dayWeights = JSONObject.fromObject(dayWeigthsJson); Set set = dayWeights.entrySet(); - Map map = new HashMap<>(); + Map map = new LinkedHashMap<>(); for (Map.Entry entry : set) { map.put(entry.getKey() + "", entry.getValue() + ""); } @@ -550,7 +550,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient // 绑定医生和患者的关系 String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); - Map param = new HashMap<>(); + Map param = new LinkedHashMap<>(); param.put("doctorName", couponMapper.findUserName(userId + "")); param.put("patientId", patientWeight.getPatientId()); param.put("hospitalName", couponMapper.findHospitalNameById(hospitalId)); @@ -601,7 +601,7 @@ public class PatientWeightServiceImpl extends BaseServiceImpl implements Patient new Thread(new Runnable() { @Override public void run() { - Map param = new HashMap<>(); + Map param = new LinkedHashMap<>(); param.put("userId", userId + ""); param.put("id", id); param.put("beforeWeight", beforeWeight); -- 1.8.3.1