|
@@ -430,7 +430,7 @@ public class WorkerLogic {
|
|
|
|
|
|
Date startTime = new Date();
|
|
|
|
|
|
- if (!CollectionUtils.isEmpty(workerPolicies)){
|
|
|
+ if (!CollectionUtils.isEmpty(workerPolicies) && startTime.before(DateUtil.beginOfDay(DateUtil.offsetDay(workerPolicies.get(0).getEndTime(),1)))){
|
|
|
startTime = DateUtil.beginOfDay(DateUtil.offsetDay(workerPolicies.get(0).getEndTime(),1));
|
|
|
}
|
|
|
|