소스 검색

报警只查询当天的

xueyiming 10 달 전
부모
커밋
900b0aba90
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -578,7 +578,7 @@ public class CoreServiceImpl implements CoreService {
     @Override
     public void getPushStatus() {
         PublishContentExample example = new PublishContentExample();
-        example.createCriteria().andStatusEqualTo(1).andPushIdIsNotNull();
+        example.createCriteria().andStatusEqualTo(1).andPushIdIsNotNull().andCreateTimeGreaterThan(DateUtil.getThatDayDate());
         List<PublishContent> publishContents = publishContentMapper.selectByExample(example);
         Map<String, List<PublishContent>> groupedByPushId = publishContents.stream()
                 .filter(content -> content.getPushId() != null) // 过滤掉 pushId 为空的情况