|
@@ -787,6 +787,7 @@ public class WorkerLogic {
|
|
|
|
|
|
Policy policy = policyService.lambdaQuery()
|
|
Policy policy = policyService.lambdaQuery()
|
|
.eq(Policy::getType, "DS")
|
|
.eq(Policy::getType, "DS")
|
|
|
|
+ .ge(Policy::getEndTime, new Date())
|
|
.orderByDesc(Policy::getEndTime)
|
|
.orderByDesc(Policy::getEndTime)
|
|
.last("limit 1").one();
|
|
.last("limit 1").one();
|
|
if (policy == null)
|
|
if (policy == null)
|