From f64dd13f70e8cfbc98e734356b81024f537a6e1d Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期一, 27 二月 2023 20:13:58 +0800
Subject: [PATCH] 修改走访任务定时

---
 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java
index 16f3383..532a874 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java
@@ -615,10 +615,13 @@
 
         //获取上月第一天时间
         Date lastMonthFirst = DateUtils.getLastMonthFirst();
-//        Date lastMonthFirst = DateUtils.getYearMonthStart(2021,7);
-        //获取上月最后一天时间
+//        Date lastMonthFirst = DateUtils.getYearMonthStart(2022,7);
+        //获取上月最后一天时间/
         Date lastMonthEnd = DateUtils.getLastMonthEnd();
-//        Date lastMonthEnd = DateUtils.getYearMonthEnd(2021,7);
+//        Date lastMonthEnd =  DateUtils.getYearMonthStart(2022,8);
+
+        log.error("第一天时间"+lastMonthFirst);
+        log.error("第一天时间"+lastMonthEnd);
 
         //查询上月已走访任务
         List<EventVisitingTasksDO> visitingTasksList = this.baseMapper.selectList(new QueryWrapper<EventVisitingTasksDO>().lambda()
@@ -626,11 +629,15 @@
                 .ge(EventVisitingTasksDO::getSubmitDate,lastMonthFirst)
                 .le(EventVisitingTasksDO::getSubmitDate,lastMonthEnd));
 
+        log.error("走访对象"+visitingTasksList.size());
+
         visitingTasksList.forEach(visitingTask -> {
             EventVisitingTasksDO visitingTasksDO = dataConversion(visitingTask);
             saveList.add(visitingTasksDO);
         });
 
+        log.error("走访新对象"+saveList.size());
+
         if(saveList.size() > 0){
             this.saveBatch(saveList);
         }

--
Gitblit v1.7.1