Browse Source

修改了非行政支持查询

dev-V1.10.0
vincent 54 minutes ago
parent
commit
c61f0005f3
  1. 5
      zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/NonEnforcementRegistrationServiceImpl.java

5
zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/NonEnforcementRegistrationServiceImpl.java

@ -237,7 +237,10 @@ public class NonEnforcementRegistrationServiceImpl implements INonEnforcementReg
}
// 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());
}

Loading…
Cancel
Save