增加数据

This commit is contained in:
bianyadong
2024-05-17 15:22:59 +08:00
parent ecfe42b40f
commit f2e17cabe2

View File

@@ -628,6 +628,18 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
} }
employeeTrainingDO.setPracticalExamScore(totalScore.get().intValue()); employeeTrainingDO.setPracticalExamScore(totalScore.get().intValue());
employeeTrainingDO.setActualAssessmentTime(new Date()); employeeTrainingDO.setActualAssessmentTime(new Date());
if(employeeTrainingDO.getTheoreticalExamScore() == null){
//查询理论分支并更新
StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber());
if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult())
&& StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) {
employeeTrainingDO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? Integer.valueOf(staffExamInfoDTO.getExamScore()) : null);
employeeTrainingDO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
}
}
if (employeeTrainingDO.getPracticalExamStatus() == CommonConstants.TWO || employeeTrainingDO.getTheoreticalExamStatus() == CommonConstants.TWO) { if (employeeTrainingDO.getPracticalExamStatus() == CommonConstants.TWO || employeeTrainingDO.getTheoreticalExamStatus() == CommonConstants.TWO) {
employeeTrainingDO.setAssessmentStatus(CommonConstants.THREE); employeeTrainingDO.setAssessmentStatus(CommonConstants.THREE);
} }