Browse Source

无效 定时器,项目启动初始化 清理

yzc 1 year ago
parent
commit
d4fa2c6d56

+ 1 - 1
hx-iot/src/main/java/com/fjhx/iot/listener/DtaListener.java

@@ -53,7 +53,7 @@ public class DtaListener {
 
     public static final Map<Long, MessageConsumer> listenerMap = new ConcurrentHashMap<>();
 
-    @PostConstruct
+//    @PostConstruct
     public void listener() {
 
         TenantHolder.setIgnore(true);

+ 3 - 3
hx-oa/src/main/java/com/fjhx/oa/utils/Notice.java

@@ -39,8 +39,8 @@ public class Notice {
     /**
      * 启动时和每天0点 查询当天的日程
      */
-    @PostConstruct
-    @Scheduled(cron = "0 0 0 * * ?")
+//    @PostConstruct
+//    @Scheduled(cron = "0 0 0 * * ?")
     public void getNoticeList() {
         TenantHolder.setIgnore(true);
         QueryWrapper queryWrapper = new QueryWrapper();
@@ -55,7 +55,7 @@ public class Notice {
     /**
      * 每10秒检查一次
      */
-    @Scheduled(cron = "0/10 * * * * ?")
+//    @Scheduled(cron = "0/10 * * * * ?")
     public void sendNoticeTime() {
         TenantHolder.setIgnore(true);
         List<ScheduleInfo> scheduleInfos = new ArrayList<>();

+ 1 - 1
hx-wms/src/main/java/com/fjhx/wms/service/monthly/impl/MonthlyInventoryReportServiceImpl.java

@@ -89,7 +89,7 @@ public class MonthlyInventoryReportServiceImpl extends ServiceImpl<MonthlyInvent
     /**
      * 每月1号的0:10:00执行自动生成上月报表
      */
-    @Scheduled(cron = "0 10 0 1 * ?")
+//    @Scheduled(cron = "0 10 0 1 * ?")
     @TenantIgnore
     @DSTransactional
     public void generateReport() {