费率下发定时任务间隔缩短至10秒

This commit is contained in:
ZZ 2022-07-01 13:51:05 +08:00
parent b4c93197f2
commit 6a9a4f781d

View File

@ -20,7 +20,7 @@ import static com.xhpc.pp.server.ChargingPileServer.getHandler;
@Component @Component
public class RateModelTask { public class RateModelTask {
@Scheduled(fixedRate = 60000) @Scheduled(fixedRate = 10000)
protected void run() { protected void run() {
Collection<String> stationKeys = REDIS.keys("station:*"); Collection<String> stationKeys = REDIS.keys("station:*");