Commit a0648c47f21540206d6f3478495a1e98cc3b5df4
1 parent
7e5633a9cb
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 9 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
a0648c4
... | ... | @@ -86,7 +86,7 @@ |
86 | 86 | |
87 | 87 | // 绑定医生和患者的关系 |
88 | 88 | String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); |
89 | - Map<String, String> param = new HashMap<>(); | |
89 | + Map<String, String> param = new LinkedHashMap<>(); | |
90 | 90 | param.put("doctorName", couponMapper.findUserName(userId + "")); |
91 | 91 | param.put("patientId", patients.getId()); |
92 | 92 | param.put("hospitalName", couponMapper.findHospitalNameById(hospitalId)); |
... | ... | @@ -134,7 +134,7 @@ |
134 | 134 | } |
135 | 135 | } |
136 | 136 | if(flag) { |
137 | - Map<String, Object> m = new HashMap<>(); | |
137 | + Map<String, Object> m = new LinkedHashMap<>(); | |
138 | 138 | m.put("hospitalId", hospitalId); |
139 | 139 | m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); |
140 | 140 | m.put("date", ymdDate); |
... | ... | @@ -163,7 +163,7 @@ |
163 | 163 | // mongoTemplate.save(patientWeight); |
164 | 164 | |
165 | 165 | |
166 | - Map<String, Object> m = new HashMap<>(); | |
166 | + Map<String, Object> m = new LinkedHashMap<>(); | |
167 | 167 | m.put("hospitalId", hospitalId); |
168 | 168 | m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); |
169 | 169 | m.put("date", DateUtil.getyyyy_MM_dd(new Date())); |
... | ... | @@ -303,7 +303,7 @@ |
303 | 303 | List<Map<String, Object>> weightInfo = new ArrayList<>(); |
304 | 304 | List<String> betweenDay = DateUtil.getBetweenDay(7); |
305 | 305 | for (String date : betweenDay) { |
306 | - Map<String, Object> temp = new HashMap<>(); | |
306 | + Map<String, Object> temp = new LinkedHashMap<>(); | |
307 | 307 | weightInfo.add(temp); |
308 | 308 | temp.put("id", date); |
309 | 309 | for (Map<String, Object> map : patientWeight.getDayWeights2()) { |
... | ... | @@ -450,7 +450,7 @@ |
450 | 450 | } |
451 | 451 | } |
452 | 452 | if(flag) { |
453 | - Map<String, Object> m = new HashMap<>(); | |
453 | + Map<String, Object> m = new LinkedHashMap<>(); | |
454 | 454 | m.put("hospitalId", hospitalId); |
455 | 455 | m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); |
456 | 456 | m.put("date", ymdDate); |
... | ... | @@ -464,7 +464,7 @@ |
464 | 464 | } |
465 | 465 | |
466 | 466 | if(StringUtils.isNotEmpty(nowWeight)) { |
467 | - Map<String, Object> m = new HashMap<>(); | |
467 | + Map<String, Object> m = new LinkedHashMap<>(); | |
468 | 468 | m.put("hospitalId", hospitalId); |
469 | 469 | m.put("hospitalName", couponMapper.getHospitalName(hospitalId)); |
470 | 470 | m.put("date", ymdDate); |
... | ... | @@ -494,7 +494,7 @@ |
494 | 494 | String dayWeigthsJson = patientWeight.getDayWeigthsJson(); |
495 | 495 | JSONObject dayWeights = JSONObject.fromObject(dayWeigthsJson); |
496 | 496 | Set<Map.Entry> set = dayWeights.entrySet(); |
497 | - Map<String, String> map = new HashMap<>(); | |
497 | + Map<String, String> map = new LinkedHashMap<>(); | |
498 | 498 | for (Map.Entry entry : set) { |
499 | 499 | map.put(entry.getKey() + "", entry.getValue() + ""); |
500 | 500 | } |
... | ... | @@ -550,7 +550,7 @@ |
550 | 550 | |
551 | 551 | // 绑定医生和患者的关系 |
552 | 552 | String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); |
553 | - Map<String, String> param = new HashMap<>(); | |
553 | + Map<String, String> param = new LinkedHashMap<>(); | |
554 | 554 | param.put("doctorName", couponMapper.findUserName(userId + "")); |
555 | 555 | param.put("patientId", patientWeight.getPatientId()); |
556 | 556 | param.put("hospitalName", couponMapper.findHospitalNameById(hospitalId)); |
... | ... | @@ -601,7 +601,7 @@ |
601 | 601 | new Thread(new Runnable() { |
602 | 602 | @Override |
603 | 603 | public void run() { |
604 | - Map<String, String> param = new HashMap<>(); | |
604 | + Map<String, String> param = new LinkedHashMap<>(); | |
605 | 605 | param.put("userId", userId + ""); |
606 | 606 | param.put("id", id); |
607 | 607 | param.put("beforeWeight", beforeWeight); |