coolcollege_intelligent_74
This commit is contained in:
@@ -92,43 +92,8 @@ public class XxlJobHandler {
|
||||
@Resource
|
||||
private OpenAcceptanceInfoDAO openAcceptanceInfoDAO;
|
||||
|
||||
/**
|
||||
* 每天都将待体验门店信息变更到体验中
|
||||
*/
|
||||
@XxlJob("updateStoreExperience")
|
||||
public void updateStoreExperience() {
|
||||
log.info("------实训体验状态变更------");
|
||||
String param = XxlJobHelper.getJobParam();
|
||||
String enterpriseId = param;
|
||||
//查出数据并更新为体验中
|
||||
List<LeaseBaseInfoDO> leaseBaseInfoDOS = trainingExperienceMapper.selectESTime();
|
||||
if (CollectionUtils.isEmpty(leaseBaseInfoDOS)) {
|
||||
log.info("------今日没有待更新数据------");
|
||||
return;
|
||||
}
|
||||
//线索ids
|
||||
List<Long> lineIds = leaseBaseInfoDOS.stream().map(LeaseBaseInfoDO::getLineId).collect(Collectors.toList());
|
||||
WorkflowSubStageStatusEnum storeExperience90 = WorkflowSubStageStatusEnum.STORE_EXPERIENCE_90;
|
||||
lineInfoMapper.toExperiencing(lineIds, storeExperience90.getCode());
|
||||
|
||||
log.info("------实训体验状态变更结束------");
|
||||
XxlJobHelper.handleSuccess();
|
||||
}
|
||||
|
||||
@XxlJob("batchUpdateInterviewWorkflowStage")
|
||||
public void batchUpdateInterviewWorkflowStage() {
|
||||
log.info("------面谈待审核状态变更------");
|
||||
List<LineInterviewDO> interviewList = lineInterviewDAO.getWaitAuditInterview();
|
||||
if (CollectionUtils.isEmpty(interviewList)) {
|
||||
log.info("------今日没有待更新数据------");
|
||||
return;
|
||||
}
|
||||
List<Long> lineIds = interviewList.stream().map(LineInterviewDO::getLineId).collect(Collectors.toList());
|
||||
List<Long> interviewIds = interviewList.stream().map(LineInterviewDO::getId).collect(Collectors.toList());
|
||||
lineInfoDAO.batchUpdateInterviewWorkflowStage(lineIds, WorkflowSubStageEnum.INVITING_INTERVIEWS, WorkflowSubStageStatusEnum.INVITING_INTERVIEWS_20);
|
||||
lineInterviewDAO.batchUpdateInterviewStatus(interviewIds, InterviewStatusEnum.WAIT_AUDIT);
|
||||
XxlJobHelper.handleSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
* @Auther: wangshuo
|
||||
|
||||
Reference in New Issue
Block a user