模拟数据

This commit is contained in:
苏竹红
2024-06-04 22:20:56 +08:00
parent 48a46ccff3
commit c5ef4cab02
2 changed files with 1 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ public class XfsgEhrServiceImpl implements XfsgEhrService {
return null; return null;
} }
StaffExamInfoDTO staffExamInfoDTO = new StaffExamInfoDTO(); StaffExamInfoDTO staffExamInfoDTO = new StaffExamInfoDTO();
staffExamInfoDTO.setExamScore("97.8"); staffExamInfoDTO.setExamScore("100");
staffExamInfoDTO.setExamResult("正考通过"); staffExamInfoDTO.setExamResult("正考通过");
return staffExamInfoDTO; return staffExamInfoDTO;
// return JSON.parseObject(data.toJSONString(), StaffExamInfoDTO.class); // return JSON.parseObject(data.toJSONString(), StaffExamInfoDTO.class);

View File

@@ -487,7 +487,6 @@ public class XxlJobHandler {
StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber()); StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber());
if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult()) if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult())
&& StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) { && StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) {
log.info("测试数据:{}"+JSONObject.toJSONString(staffExamInfoDTO));
employeeTrainingDO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null); employeeTrainingDO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null);
employeeTrainingDO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult())); employeeTrainingDO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO); employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);