|
|
@ -237,7 +237,10 @@ public class NonEnforcementRegistrationServiceImpl implements INonEnforcementReg |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// dateSearch - 时间范围查询
|
|
|
// dateSearch - 时间范围查询
|
|
|
if (StringUtils.isNotBlank(bo.getDateSearch())) { |
|
|
// 仅当 dateSearch 为 "YYYY-MM" 格式的具体月份时才生效;
|
|
|
|
|
|
// "month"/"quarter"/"year" 为时段类型标识,由 dateType 条件处理,直接忽略
|
|
|
|
|
|
if (StringUtils.isNotBlank(bo.getDateSearch()) |
|
|
|
|
|
&& bo.getDateSearch().matches("^\\d{4}-\\d{2}$")) { |
|
|
lqw.apply("DATE_FORMAT(enforcement_time, '%Y-%m') = {0}", bo.getDateSearch()); |
|
|
lqw.apply("DATE_FORMAT(enforcement_time, '%Y-%m') = {0}", bo.getDateSearch()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|