Commit 8a84a32559b3a758d687cf9d927f72160e46acca

Authored by litao@lymsh.com
1 parent 2c6d1ca701

体重管理相关代码

Showing 2 changed files with 2 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientWeightController.java View file @ 8a84a32
... ... @@ -91,7 +91,7 @@
91 91 }
92 92  
93 93 /**
94   - * 体重报告(小程序使用)
  94 + * 体重报告(小程序和app使用)
95 95 */
96 96 @ResponseBody
97 97 @RequestMapping(value = "/report/wx/{patientId}/{hospitalId}", method = RequestMethod.GET)
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 8a84a32
... ... @@ -249,6 +249,7 @@
249 249 PatientWeight patientWeight = mongoTemplate.findOne(Query.query(Criteria.where("patientId").is(patientId).and("hospitalId").is(hospitalId)), PatientWeight.class);
250 250 if(patientWeight != null) {
251 251 Map<String, Object> map = new HashMap<>();
  252 + map.put("beforeWeight", patientWeight.getBeforeWeight());
252 253 setReport(map, patientWeight.getWeights(), patientWeight.getBeforeWeight(), patientWeight.getBmi(), patientWeight.getDayWeights());
253 254 return RespBuilder.buildSuccess(map);
254 255 }