Commit 5e89e3be89645b5f2f8d5599acd9eb1d28c0780c

Authored by wangbo
1 parent ca15880f82

自测bug提交

Showing 1 changed file with 7 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TemporaryWeightServiceImpl.java View file @ 5e89e3b
... ... @@ -152,14 +152,15 @@
152 152 // Patients p = mongoTemplate.findById(patientWeight.getPatientId(), Patients.class);
153 153 Map<String, Object> temp = new LinkedHashMap<>();
154 154 temp.put("id", patientWeight.getId());
155   - temp.put("username", patientWeight.getUserName());
  155 + temp.put("userName", patientWeight.getUserName());
156 156 temp.put("age", patientWeight.getAge());
157   - temp.put("week", DateUtil.getWeekDesc(patientWeight.getLastMenses(), new Date()));
  157 + temp.put("weeks", DateUtil.getWeekDesc(patientWeight.getLastMenses(), new Date()));
158 158 temp.put("beforeWeight", patientWeight.getBeforeWeight());
159 159 temp.put("beforeHeight", patientWeight.getBeforeHeight());
160   - temp.put("bim", patientWeight.getBmi()); // 体质指数(BMI)=体重(kg)÷身高^2(m)
  160 + temp.put("bmi", patientWeight.getBmi()); // 体质指数(BMI)=体重(kg)÷身高^2(m)
161 161 temp.put("nowWeight", patientWeight.getNowWeight());
162   - temp.put("time", DateUtil.getyyyy_MM_dd(patientWeight.getModified()));
  162 + temp.put("number", patientWeight.getNumber());
  163 + temp.put("created", DateUtil.getyyyy_MM_dd(patientWeight.getModified()));
163 164 temp.put("doctorName", patientWeight.getDoctorName());
164 165 restMap.add(temp);
165 166 }
... ... @@ -170,8 +171,8 @@
170 171  
171 172  
172 173 @Override
173   - public BaseResponse info(String phone) {
174   - TemporaryWeightModel template = mongoTemplate.findOne(Query.query(Criteria.where("_id").is(phone)), TemporaryWeightModel.class);
  174 + public BaseResponse info(String id) {
  175 + TemporaryWeightModel template = mongoTemplate.findOne(Query.query(Criteria.where("_id").is(id)), TemporaryWeightModel.class);
175 176 if (template != null) {
176 177 /* Patients patients = mongoTemplate.findById(patientWeight.getPatientId(), Patients.class);
177 178 if (patients == null) {