Jelajahi Sumber

feishu export

wangyunpeng 1 bulan lalu
induk
melakukan
73da5e794f

+ 5 - 1
core/src/main/java/com/tzld/supply/job/SpiderContentFeishuJob.java

@@ -36,8 +36,12 @@ public class SpiderContentFeishuJob {
 
     @XxlJob("spiderContentFeishuJob")
     public ReturnT<String> spiderContentFeishuJob(String param) {
+        Long startTime = DateUtils.getBeforeDayStart(1);
+        Long endTime = startTime + 86400 * 1000;
         SpiderContentExample example = new SpiderContentExample();
-        example.createCriteria().andStatusIn(Lists.newArrayList(2, 3)).andAiRoughStatusEqualTo(1);
+        example.createCriteria().andStatusIn(Lists.newArrayList(2, 3))
+                .andAiRoughStatusEqualTo(1)
+                .andCreateTimeBetween(startTime, endTime);
         List<SpiderContent> dataList = spiderContentMapper.selectByExampleWithBLOBs(example);
         if (CollectionUtil.isEmpty(dataList)) {
             return ReturnT.SUCCESS;