Jelajahi Sumber

Merge branch 'dev'

xiongzhu 3 tahun lalu
induk
melakukan
dea02698ad

+ 2 - 0
src/main/java/com/izouma/nineth/service/WithdrawApplyScheduleService.java

@@ -5,6 +5,7 @@ import com.izouma.nineth.config.GeneralProperties;
 import com.izouma.nineth.utils.DateTimeUtils;
 import lombok.AllArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Service;
 
@@ -15,6 +16,7 @@ import java.util.concurrent.TimeUnit;
 @Service
 @AllArgsConstructor
 @Slf4j
+@ConditionalOnProperty(name = "general.workerId", havingValue = "1")
 public class WithdrawApplyScheduleService {
 
     private SysConfigService     sysConfigService;

+ 4 - 0
src/main/java/com/izouma/nineth/utils/DateTimeUtils.java

@@ -71,4 +71,8 @@ public class DateTimeUtils {
         }
         return true;
     }
+
+    public static void main(String[] args) {
+        System.out.println(isWorkDay(LocalDate.now().plusDays(2)));
+    }
 }

+ 1 - 1
src/main/resources/application.yaml

@@ -157,7 +157,7 @@ aliyun:
 general:
   host: https://test.raex.vip
   contract-name: raex_new
-  name: OASISMETA
+  name: RAEX绿洲
   org: 华储艺术品中心(深圳)有限公司
   short-name: 华储
   create-order-group: create-order-group-dev