筹建阶段

This commit is contained in:
苏竹红
2024-06-19 15:55:26 +08:00
parent d0c6d77a36
commit 048ab859e8
7 changed files with 25 additions and 111 deletions

View File

@@ -391,30 +391,6 @@ public class XxlJobHandler {
XxlJobHelper.handleSuccess();
}
@XxlJob("theoreticalExam")
public void theoreticalExam() {
log.info("------理论考试更新------");
List<EmployeeTrainingDO> theoreticalList = employeeTrainingDAO.theoreticalList();
if (CollectionUtils.isEmpty(theoreticalList)) {
log.info("------今日没有待更新数据------");
return;
}
for (EmployeeTrainingDO employeeTrainingDO : theoreticalList) {
TempUserDetailDO tempUserDetailDO = tempUserDetailDAO.selectById(employeeTrainingDO.getXfsgUserDetailId());
EnterpriseUserDO enterpriseUserDO = enterpriseUserDAO.getUserInfoByThirdOaUniqueFlag(tempUserDetailDO.getIdCard());
//查询理论分支并更新
StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber());
if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult())
&& StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) {
employeeTrainingDO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null);
employeeTrainingDO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
}
}
XxlJobHelper.handleSuccess();
}
/**
* 店铺新店开业状态更新