fix: 试用结束的标准自动发起复审流程定时任务没数据自动结束
This commit is contained in:
+5
@@ -13,6 +13,7 @@ import com.jero.modules.laws.standard.entity.LawsEnterpriseStandard;
|
|||||||
import com.jero.modules.laws.standard.service.ILawsEnterpriseStandardService;
|
import com.jero.modules.laws.standard.service.ILawsEnterpriseStandardService;
|
||||||
import com.jero.modules.laws.system.service.ILawsContactManageService;
|
import com.jero.modules.laws.system.service.ILawsContactManageService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.quartz.Job;
|
import org.quartz.Job;
|
||||||
import org.quartz.JobExecutionContext;
|
import org.quartz.JobExecutionContext;
|
||||||
import org.quartz.JobExecutionException;
|
import org.quartz.JobExecutionException;
|
||||||
@@ -67,6 +68,10 @@ public class ESTrialEndRecheckJob implements Job {
|
|||||||
expireStandards.add(es);
|
expireStandards.add(es);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (CollectionUtils.isEmpty(expireStandards)) {
|
||||||
|
log.info("没有超出试用期的企标,定时任务结束");
|
||||||
|
return;
|
||||||
|
}
|
||||||
LambdaQueryWrapper<EnterpriseStandardRecheckPlan> recheckWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<EnterpriseStandardRecheckPlan> recheckWrapper = new LambdaQueryWrapper<>();
|
||||||
recheckWrapper.in(EnterpriseStandardRecheckPlan::getStandardNo,
|
recheckWrapper.in(EnterpriseStandardRecheckPlan::getStandardNo,
|
||||||
expireStandards.stream().map(LawsEnterpriseStandard::getStandardNumber).collect(Collectors.toList()));
|
expireStandards.stream().map(LawsEnterpriseStandard::getStandardNumber).collect(Collectors.toList()));
|
||||||
|
|||||||
Reference in New Issue
Block a user