增加数据
This commit is contained in:
@@ -628,6 +628,18 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
||||
}
|
||||
employeeTrainingDO.setPracticalExamScore(totalScore.get().intValue());
|
||||
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) {
|
||||
employeeTrainingDO.setAssessmentStatus(CommonConstants.THREE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user