Commit cd69cb594b1eefea38d9f80297fc0e0287afddec

Authored by shiyang
1 parent 3dbfcf1a43

update

Showing 1 changed file with 1 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AuthenticationFacade.java View file @ cd69cb5
... ... @@ -187,13 +187,12 @@
187 187  
188 188 List<Map> result= null;
189 189 try {
190   - System.out.println(request.convertToQuery().convertToMongoQuery().toString());
191 190 List<Authentication> listPage=authenticationService.queryList(request,Sort.Direction.DESC,new String[]{"created"});
192 191 result = new ArrayList<>();
193 192 for (Authentication model : listPage) {
194 193 Map<String,Object> map=ReflectionUtils.beanToMap(model);//对象转map
195 194 //年龄
196   - map.put("age",DateUtil.getAge(new Date(),model.getBirth()));
  195 + map.put("age",DateUtil.getAge(model.getBirth(),new Date()));
197 196 //建档孕周
198 197 map.put("bookbuildingDueWeek",DateUtil.getWeekDesc(model.getLastMenses(),model.getVerifyDate()));
199 198 //居住地址