feat: 首页企标实施预警发布预警排除掉废止的企标

This commit is contained in:
2024-03-21 10:22:27 +08:00
parent 12e3b763b2
commit cc1f4886b2
@@ -55,6 +55,7 @@ public class LawsEnterpriseStandardServiceImpl extends ServiceImpl<LawsEnterpris
public IPage<LawsEnterpriseStandard> latestEs(Integer pageNo, Integer pageSize, String field) {
QueryWrapper<LawsEnterpriseStandard> esWrapper = new QueryWrapper<>();
esWrapper.ne("standard_state", StandardStateEnum.ABOLISH.getStateValue());
esWrapper.le(field, LocalDate.now());
esWrapper.orderByDesc(field);
esWrapper.last("limit 100");