Selaa lähdekoodia

chore: 名称同步调度器加启动日志

alphaH 1 päivä sitten
vanhempi
sitoutus
5ca6622fcf

+ 3 - 1
java/src/main/java/com/payment/platform/module/payment/enterprise/scheduler/EnterpriseNameSyncScheduler.java

@@ -29,11 +29,13 @@ public class EnterpriseNameSyncScheduler {
 
     @PostConstruct
     public void init() {
+        log.info("[企业名称同步] 调度器启动");
         retryNameSync();
     }
 
-    @Scheduled(fixedDelay = 10 * 60 * 1000) // 每 10 分钟
+    @Scheduled(fixedDelay = 60 * 1000)
     public void retryNameSync() {
+        log.info("[企业名称同步] 开始执行");
         List<EnterpriseEntity> list = enterpriseMapper.selectList(
                 new LambdaQueryWrapper<EnterpriseEntity>()
                         .eq(EnterpriseEntity::getNameSyncStatus, "0")