|
@@ -53,9 +53,9 @@ public class NewPartsChangeSalesSchedule {
|
|
|
// @Scheduled(cron = "0 0 01 * * ?")
|
|
|
@Scheduled(initialDelay = 5000, fixedDelay = 30000)
|
|
|
private void newPartsToSalesTasks() throws InterruptedException {
|
|
|
- if (profiles.equals("dev") || !DateUtil.formatDateTime(DateUtil.date()).contains(" 01:0")) {
|
|
|
- return;
|
|
|
- }
|
|
|
+// if (profiles.equals("dev") || !DateUtil.formatDateTime(DateUtil.date()).contains(" 01:0")) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
Lock obtain = redisLockRegistry.obtain(Constant.RedisPrefix.NEW_CHANGE + "add");
|
|
|
|