修改测算逻辑

This commit is contained in:
wuweihua
2026-09-18 17:09:43 +08:00
parent e08a36de91
commit bb240746a6
22 changed files with 435 additions and 44 deletions
@@ -11,7 +11,7 @@ import com.ruoyi.price.service.IPrcPriceSetService;
/**
* Refresh prc_price_set_version status (draft/pending/effect/expired).
* Startup + every 5 minutes so PENDING becomes EFFECT when effective_time is reached.
* Startup + every 3 hours so PENDING becomes EFFECT when effective_time is reached.
*/
@Component
public class BmsStatusRefreshTask implements ApplicationRunner
@@ -27,7 +27,7 @@ public class BmsStatusRefreshTask implements ApplicationRunner
refresh("startup");
}
@Scheduled(cron = "0 0/5 * * * ?")
@Scheduled(cron = "0 0 0/3 * * ?")
public void scheduledRefresh()
{
refresh("scheduled");