|
@@ -71,6 +71,7 @@ public class CanteenDiningRecordController {
|
|
|
@Autowired
|
|
|
private UserCompanyService userCompanyService;
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
private PersonDeviceLogService personDeviceLogService;
|
|
|
|
|
@@ -260,7 +261,7 @@ public class CanteenDiningRecordController {
|
|
|
Map<String, Object> searchParams = new HashMap<>();
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("a.record_time", "desc"));
|
|
|
+ sortList.add(new Sort("a.create_time", "desc"));
|
|
|
|
|
|
if (personId != null) {
|
|
|
searchParams.put("personId", personId);
|
|
@@ -349,10 +350,7 @@ public class CanteenDiningRecordController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(canteenDiningRecord.getRecordTime()!=null) {
|
|
|
- map.put("recordTime", sdf.format(canteenDiningRecord.getRecordTime()));
|
|
|
- }
|
|
|
-
|
|
|
+ map.put("createTime",sdf.format(canteenDiningRecord.getCreateTime()));
|
|
|
map.put("categoryAmount",canteenDiningRecord.getCategoryAmount());
|
|
|
map.put("address",canteenDiningRecord.getAddress());
|
|
|
map.put("personName",personName);
|
|
@@ -1031,7 +1029,7 @@ public class CanteenDiningRecordController {
|
|
|
|
|
|
return messageResult;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@GetMapping("batchUpdate")
|
|
|
@ApiOperation(value="更新食堂就餐记录")
|
|
|
public MessageResult<Integer> batchUpdate(Long personId,String deviceNo,
|
|
@@ -1083,11 +1081,12 @@ public class CanteenDiningRecordController {
|
|
|
}
|
|
|
catch (Exception ex){
|
|
|
logger.error(ex.getMessage(),ex);
|
|
|
-
|
|
|
+
|
|
|
messageResult.setResult(false);
|
|
|
messageResult.setMessage(ex.getMessage());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return messageResult;
|
|
|
+
|
|
|
}
|
|
|
}
|