人员工资、退场,巡检工单
This commit is contained in:
@ -376,4 +376,19 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验日期范围
|
||||
*
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return true 表示日期范围有效,false 表示日期范围无效
|
||||
*/
|
||||
public static boolean isValidDateRange(LocalDate startDate, LocalDate endDate) {
|
||||
try {
|
||||
return !startDate.isAfter(endDate); // start <= end
|
||||
} catch (DateTimeParseException e) {
|
||||
return false; // 格式非法
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ public class MybatisPlusConfig {
|
||||
public PaginationInnerInterceptor paginationInnerInterceptor() {
|
||||
PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor();
|
||||
// 分页合理化
|
||||
paginationInnerInterceptor.setOverflow(true);
|
||||
paginationInnerInterceptor.setOverflow(false);
|
||||
return paginationInnerInterceptor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user