Commit 57413705b1ae7df1e8126edc806058981efea3a9

Authored by zhangchao
1 parent 097b85d784
Exists in dev

#fix:优化孕期

Showing 2 changed files with 6 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PregnancyReportController.java View file @ 5741370
... ... @@ -56,8 +56,8 @@
56 56 @ResponseBody
57 57 @TokenRequired
58 58 public BaseResponse addPostpartumReport(@RequestBody PregnancyReport pregnancyReport){
59   - pregnancyReportFacade.add(pregnancyReport);
60   - return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
  59 +
  60 + return pregnancyReportFacade.add(pregnancyReport);
61 61 }
62 62  
63 63 @RequestMapping(method = RequestMethod.POST, value = "/update")
... ... @@ -67,8 +67,8 @@
67 67 if (StringUtils.isEmpty(postpartumReport.getId())){
68 68 return new BaseResponse().setErrorcode(-1).setErrormsg("参数异常");
69 69 }
70   - pregnancyReportFacade.update(postpartumReport);
71   - return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
  70 +
  71 + return pregnancyReportFacade.update(postpartumReport);
72 72 }
73 73  
74 74 /**
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 5741370
... ... @@ -6380,10 +6380,10 @@
6380 6380 baseQuery.setPage(antExManagerQueryRequest.getPage());
6381 6381 baseQuery.setLimit(antExManagerQueryRequest.getLimit());
6382 6382 baseQuery.mysqlBuild((int) count);
6383   - System.out.println(baseQuery.getOffset() + " " + antExManagerQueryRequest.getLimit());
  6383 + // System.out.println(baseQuery.getOffset() + " " + antExManagerQueryRequest.getLimit());
6384 6384 query.skip(baseQuery.getOffset()).limit(antExManagerQueryRequest.getLimit());
6385 6385  
6386   - System.out.println(query.toString());
  6386 + //System.out.println(query.toString());
6387 6387 List <AutoRiskRecord> models = mongoTemplate.find(query.with(new Sort(Sort.Direction.DESC, "created")), AutoRiskRecord.class);
6388 6388 if (CollectionUtils.isNotEmpty(models)) {
6389 6389 for (AutoRiskRecord model : models) {