|
|
@@ -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;
|