模拟数据
This commit is contained in:
@@ -101,7 +101,11 @@ public class XfsgEhrServiceImpl implements XfsgEhrService {
|
||||
log.info("xfsg#getUserExamInfo,staffNumber:{},返回值data为空", staffNumber);
|
||||
return null;
|
||||
}
|
||||
return JSON.parseObject(data.toJSONString(), StaffExamInfoDTO.class);
|
||||
StaffExamInfoDTO staffExamInfoDTO = new StaffExamInfoDTO();
|
||||
staffExamInfoDTO.setExamScore("97.8");
|
||||
staffExamInfoDTO.setExamResult("正考通过");
|
||||
return staffExamInfoDTO;
|
||||
// return JSON.parseObject(data.toJSONString(), StaffExamInfoDTO.class);
|
||||
} catch (Exception e) {
|
||||
log.info("xfsg#getUserExamInfo,staffNumber:{},Exception:", staffNumber, e);
|
||||
}
|
||||
|
||||
@@ -487,6 +487,7 @@ public class XxlJobHandler {
|
||||
StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber());
|
||||
if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult())
|
||||
&& StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) {
|
||||
log.info("测试数据:{}"+JSONObject.toJSONString(staffExamInfoDTO));
|
||||
employeeTrainingDO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null);
|
||||
employeeTrainingDO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
|
||||
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
|
||||
|
||||
Reference in New Issue
Block a user