Commit ca4d41698d2abdbcae88555c9520d6ab73c06ff5

Authored by shiyang
1 parent c25453eb66

update

Showing 2 changed files with 2 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyHealthController.java View file @ ca4d416
... ... @@ -146,7 +146,7 @@
146 146 @TokenRequired
147 147 @RequestMapping(value = "/baby/check/chkRecordLst", method = RequestMethod.GET)
148 148 public BaseResponse chkRecordLst(@RequestParam(value = "id", required = false) String id,
149   - @RequestParam(value = "monthAge", required = false) Integer checkMonthAge, HttpServletRequest request) {
  149 + @RequestParam(value = "checkMonthAge", required = false) Integer checkMonthAge, HttpServletRequest request) {
150 150 return babyHealthFacade.chkRecordLst(id,checkMonthAge);
151 151 }
152 152  
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyHealthFacade.java View file @ ca4d416
... ... @@ -1018,7 +1018,7 @@
1018 1018 List<Map<String, Object>> rest = new ArrayList<Map<String, Object>>();
1019 1019  
1020 1020 Criteria criteriaCheck = Criteria.where("buildId").in(id);
1021   - criteriaCheck.and("checkMonth").is(checkMonthAge);
  1021 + criteriaCheck.and("tcType").is(checkMonthAge);//查询的是检查套餐
1022 1022 List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyCheckModel.class);
1023 1023 List<BabyEyeCheck> babyEyeCheckList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyEyeCheck.class);
1024 1024