Commit 993cd877 authored by 廖旭伟's avatar 廖旭伟

每日打卡记录导出时间跨度限制改为一个月

parent a020d5af
......@@ -119,8 +119,8 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
query.setAttendanceDateEnd(DateUtil.today());
}
try {
if (DateUtils.getBetween(query.getAttendanceDateStart(), query.getAttendanceDateEnd(), DateUtils.P_yyyy_MM_dd, 2) > 10) {
throw new AppException("选择的日期跨度不能超过十天!");
if (DateUtils.getBetween(query.getAttendanceDateStart(), query.getAttendanceDateEnd(), DateUtils.P_yyyy_MM_dd, 2) > 31) {
throw new AppException("选择的日期跨度不能超过一个月!");
}
} catch (Exception e) {
throw new AppException(e.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment