筹建阶段
This commit is contained in:
@@ -78,7 +78,7 @@ public class EmployeeTrainingDAO {
|
|||||||
|
|
||||||
public Integer unCompleteNum(Long shopId) {
|
public Integer unCompleteNum(Long shopId) {
|
||||||
Example example = new Example(EmployeeTrainingDO.class);
|
Example example = new Example(EmployeeTrainingDO.class);
|
||||||
example.createCriteria().andEqualTo("shopId", shopId).andCondition("(theoretical_exam_status != 1 or practical_exam_status != 1)");
|
example.createCriteria().andEqualTo("shopId", shopId).andCondition("(practical_exam_status != 1)");
|
||||||
return employeeTrainingMapper.selectCountByExample(example);
|
return employeeTrainingMapper.selectCountByExample(example);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
|||||||
log.info("未找到可发送工作通知的人员");
|
log.info("未找到可发送工作通知的人员");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
commonService.sendMessage(sendUsers, MessageEnum.MESSAGE_17, requestMap);
|
//commonService.sendMessage(sendUsers, MessageEnum.MESSAGE_17, requestMap);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -203,22 +203,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
|||||||
submitLicenseResponse.setApprover(enterpriseUserDO.getName()+"_"+enterpriseUserDO.getJobnumber());
|
submitLicenseResponse.setApprover(enterpriseUserDO.getName()+"_"+enterpriseUserDO.getJobnumber());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//2.未查到证照信息,所以查询鲜丰的默认值(只要鲜丰接口内有值,总是优先使用鲜丰数据)
|
|
||||||
if (Objects.nonNull(shopInfoDO.getStoreNum()) && StringUtil.isNotBlank(shopInfoDO.getStoreNum())) {
|
|
||||||
GetStoreInfoByCodeResponse storeInfoCode = coolStoreStartFlowService.getStoreInfoCode(shopInfoDO.getStoreNum());
|
|
||||||
if (Objects.nonNull(storeInfoCode.getData())
|
|
||||||
&& Objects.nonNull(storeInfoCode.getData().getStoreDocument())
|
|
||||||
&& storeInfoCode.getCode() == 0
|
|
||||||
&& StringUtil.isNotBlank(storeInfoCode.getData().getStoreDocument().getStoreBusinessNumber())) {
|
|
||||||
//替换落库的值
|
|
||||||
submitLicenseResponse = SubmitLicenseResponse.from(storeInfoCode, submitLicenseResponse);
|
|
||||||
//给前端判断哪些是鲜丰数据不可修改
|
|
||||||
GetStoreInfoByCodeResponse.StoreDocument storeDocument = storeInfoCode.getData().getStoreDocument();
|
|
||||||
SubmitLicenseResponse.StoreDocument storeDocumentResponse = toStoreDocument(storeDocument);
|
|
||||||
submitLicenseResponse.setStoreDocument(storeDocumentResponse);
|
|
||||||
return submitLicenseResponse;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//3.既没有提交数据,也没有在鲜丰端查到证照信息,则返回空自由填写
|
//3.既没有提交数据,也没有在鲜丰端查到证照信息,则返回空自由填写
|
||||||
return submitLicenseResponse;
|
return submitLicenseResponse;
|
||||||
|
|||||||
@@ -194,21 +194,6 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
|||||||
employeeTrainingVO.setAssessmentStatus(employeeTrainingDO.getAssessmentStatus());
|
employeeTrainingVO.setAssessmentStatus(employeeTrainingDO.getAssessmentStatus());
|
||||||
employeeTrainingVO.setAssessmentNum(employeeTrainingDO.getAssessmentNum());
|
employeeTrainingVO.setAssessmentNum(employeeTrainingDO.getAssessmentNum());
|
||||||
employeeTrainingVO.setAssessmentTotalNum(employeeTrainingDO.getAssessmentTotalNum());
|
employeeTrainingVO.setAssessmentTotalNum(employeeTrainingDO.getAssessmentTotalNum());
|
||||||
employeeTrainingVO.setTheoreticalExamStatus(employeeTrainingDO.getTheoreticalExamStatus());
|
|
||||||
employeeTrainingVO.setTheoreticalExamScore(employeeTrainingDO.getTheoreticalExamScore());
|
|
||||||
//查询理论分支并更新
|
|
||||||
StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber());
|
|
||||||
if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult())
|
|
||||||
&& StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) {
|
|
||||||
employeeTrainingVO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null);
|
|
||||||
employeeTrainingVO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
|
|
||||||
if(!employeeTrainingVO.getTheoreticalExamScore().equals(employeeTrainingDO.getTheoreticalExamScore())
|
|
||||||
|| !employeeTrainingVO.getTheoreticalExamStatus().equals(employeeTrainingDO.getTheoreticalExamStatus())){
|
|
||||||
employeeTrainingDO.setTheoreticalExamScore(employeeTrainingVO.getTheoreticalExamScore());
|
|
||||||
employeeTrainingDO.setTheoreticalExamStatus(employeeTrainingVO.getTheoreticalExamStatus());
|
|
||||||
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
employeeTrainingVO.setPracticalExamStatus(employeeTrainingDO.getPracticalExamStatus());
|
employeeTrainingVO.setPracticalExamStatus(employeeTrainingDO.getPracticalExamStatus());
|
||||||
employeeTrainingVO.setPracticalExamScore(employeeTrainingDO.getPracticalExamScore());
|
employeeTrainingVO.setPracticalExamScore(employeeTrainingDO.getPracticalExamScore());
|
||||||
employeeTrainingVO.setEstimatedAssessmentTime(employeeTrainingDO.getEstimatedAssessmentTime());
|
employeeTrainingVO.setEstimatedAssessmentTime(employeeTrainingDO.getEstimatedAssessmentTime());
|
||||||
@@ -495,22 +480,7 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
|||||||
assessmentUserTrainingVO.setUsername(tempUserDetailDO.getUsername());
|
assessmentUserTrainingVO.setUsername(tempUserDetailDO.getUsername());
|
||||||
assessmentUserTrainingVO.setAssessmentStatus(employeeTrainingDO.getAssessmentStatus());
|
assessmentUserTrainingVO.setAssessmentStatus(employeeTrainingDO.getAssessmentStatus());
|
||||||
assessmentUserTrainingVO.setShopId(tempUserDetailDO.getShopId());
|
assessmentUserTrainingVO.setShopId(tempUserDetailDO.getShopId());
|
||||||
assessmentUserTrainingVO.setTheoreticalExamStatus(employeeTrainingDO.getTheoreticalExamStatus());
|
|
||||||
assessmentUserTrainingVO.setTheoreticalExamScore(employeeTrainingDO.getTheoreticalExamScore());
|
|
||||||
|
|
||||||
//查询理论分支并更新
|
|
||||||
StaffExamInfoDTO staffExamInfoDTO = xfsgEhrService.getUserExamInfo(enterpriseUserDO.getJobnumber());
|
|
||||||
if (staffExamInfoDTO != null && StringUtils.isNotBlank(staffExamInfoDTO.getExamResult())
|
|
||||||
&& StringUtils.isNotBlank(staffExamInfoDTO.getExamScore())) {
|
|
||||||
assessmentUserTrainingVO.setTheoreticalExamScore(StringUtils.isNotBlank(staffExamInfoDTO.getExamScore()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null);
|
|
||||||
assessmentUserTrainingVO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
|
|
||||||
if(!assessmentUserTrainingVO.getTheoreticalExamScore().equals(employeeTrainingDO.getTheoreticalExamScore())
|
|
||||||
|| !assessmentUserTrainingVO.getTheoreticalExamStatus().equals(employeeTrainingDO.getTheoreticalExamStatus())){
|
|
||||||
employeeTrainingDO.setTheoreticalExamScore(assessmentUserTrainingVO.getTheoreticalExamScore());
|
|
||||||
employeeTrainingDO.setTheoreticalExamStatus(assessmentUserTrainingVO.getTheoreticalExamStatus());
|
|
||||||
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
assessmentUserTrainingVO.setAssessmentNum(employeeTrainingDO.getAssessmentNum());
|
assessmentUserTrainingVO.setAssessmentNum(employeeTrainingDO.getAssessmentNum());
|
||||||
assessmentUserTrainingVO.setAssessmentTotalNum(employeeTrainingDO.getAssessmentTotalNum());
|
assessmentUserTrainingVO.setAssessmentTotalNum(employeeTrainingDO.getAssessmentTotalNum());
|
||||||
assessmentUserTrainingVO.setPracticalExamScore(employeeTrainingDO.getPracticalExamScore());
|
assessmentUserTrainingVO.setPracticalExamScore(employeeTrainingDO.getPracticalExamScore());
|
||||||
@@ -588,7 +558,6 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
|||||||
EmployeeTrainingDO employeeTrainingDO = employeeTrainingDAO.selectById(request.getEmployeeTrainingId());
|
EmployeeTrainingDO employeeTrainingDO = employeeTrainingDAO.selectById(request.getEmployeeTrainingId());
|
||||||
TempUserDetailDO tempUserDetailDO = tempUserDetailDAO.selectById(employeeTrainingDO.getXfsgUserDetailId());
|
TempUserDetailDO tempUserDetailDO = tempUserDetailDAO.selectById(employeeTrainingDO.getXfsgUserDetailId());
|
||||||
ShopInfoDO shopInfoDO = shopInfoDAO.getShopInfo(tempUserDetailDO.getShopId());
|
ShopInfoDO shopInfoDO = shopInfoDAO.getShopInfo(tempUserDetailDO.getShopId());
|
||||||
Boolean pass = true;
|
|
||||||
EnterpriseUserDO enterpriseUserDO = enterpriseUserDAO.getUserInfoByThirdOaUniqueFlag(tempUserDetailDO.getIdCard());
|
EnterpriseUserDO enterpriseUserDO = enterpriseUserDAO.getUserInfoByThirdOaUniqueFlag(tempUserDetailDO.getIdCard());
|
||||||
String userId = enterpriseUserDO.getUserId();
|
String userId = enterpriseUserDO.getUserId();
|
||||||
AtomicReference<Long> totalScore = new AtomicReference<>(0L);
|
AtomicReference<Long> totalScore = new AtomicReference<>(0L);
|
||||||
@@ -640,16 +609,6 @@ 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()) ? NumberConverter.convertMath(staffExamInfoDTO.getExamScore()) : null);
|
|
||||||
employeeTrainingDO.setTheoreticalExamStatus(ExamStatusEnum.matchCodeByDesc(staffExamInfoDTO.getExamResult()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (employeeTrainingDO.getPracticalExamStatus() == CommonConstants.TWO) {
|
if (employeeTrainingDO.getPracticalExamStatus() == CommonConstants.TWO) {
|
||||||
employeeTrainingDO.setAssessmentStatus(CommonConstants.THREE);
|
employeeTrainingDO.setAssessmentStatus(CommonConstants.THREE);
|
||||||
|
|||||||
@@ -104,16 +104,16 @@ public class LinePayServiceImpl implements LinePayService {
|
|||||||
requestMap.put("partnerMobile",lineInfo.getMobile());
|
requestMap.put("partnerMobile",lineInfo.getMobile());
|
||||||
requestMap.put("lineId",String.valueOf(lineInfo.getId()));
|
requestMap.put("lineId",String.valueOf(lineInfo.getId()));
|
||||||
requestMap.put("shopId",String.valueOf(shopInfoDO.getId()));
|
requestMap.put("shopId",String.valueOf(shopInfoDO.getId()));
|
||||||
commonService.sendMessage(Arrays.asList(lineInfo.getInvestmentManager()), MessageEnum.MESSAGE_18,requestMap);
|
//commonService.sendMessage(Arrays.asList(lineInfo.getInvestmentManager()), MessageEnum.MESSAGE_18,requestMap);
|
||||||
}
|
}
|
||||||
if (PayBusinessTypeEnum.INTENT_MONEY.getCode().equals(request.getPayBusinessType())) {
|
if (PayBusinessTypeEnum.INTENT_MONEY.getCode().equals(request.getPayBusinessType())) {
|
||||||
lineInfo.setWorkflowSubStage(WorkflowSubStageEnum.PAY_DEPOSIT.getCode());
|
lineInfo.setWorkflowSubStage(WorkflowSubStageEnum.PAY_DEPOSIT.getCode());
|
||||||
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.PAY_DEPOSIT_50.getCode());
|
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.PAY_DEPOSIT_50.getCode());
|
||||||
lineInfoDAO.insertOrUpdate(lineInfo);
|
lineInfoDAO.insertOrUpdate(lineInfo);
|
||||||
Map<String, String> requestMap = new HashMap<>();
|
Map<String, String> requestMap = new HashMap<>();
|
||||||
// requestMap.put("partnerUsername",lineInfo.getUsername());
|
requestMap.put("partnerUsername",lineInfo.getUsername());
|
||||||
// requestMap.put("payTime",DateUtils.parseDateToStr(DateUtils.SPECIAL_DATE_START, linePayDO.getPayTime()));
|
requestMap.put("payTime",DateUtils.parseDateToStr(DateUtils.SPECIAL_DATE_START, linePayDO.getPayTime()));
|
||||||
// requestMap.put("lineId",String.valueOf(lineInfo.getId()));
|
requestMap.put("lineId",String.valueOf(lineInfo.getId()));
|
||||||
// commonService.sendMessage(Arrays.asList(lineInfo.getInvestmentManager()), MessageEnum.MESSAGE_5,requestMap);
|
// commonService.sendMessage(Arrays.asList(lineInfo.getInvestmentManager()), MessageEnum.MESSAGE_5,requestMap);
|
||||||
}
|
}
|
||||||
return payId == null ? null : payId;
|
return payId == null ? null : payId;
|
||||||
|
|||||||
@@ -163,13 +163,14 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
|||||||
FranchiseAgreementRequest franchiseAgreementRequest = convertFranchiseAgreement(request, shopInfoDO, user);
|
FranchiseAgreementRequest franchiseAgreementRequest = convertFranchiseAgreement(request, shopInfoDO, user);
|
||||||
MemberQuestionDO memberQuestionDO = joinIntentionMapper.getByLineId(shopInfoDO.getLineId());
|
MemberQuestionDO memberQuestionDO = joinIntentionMapper.getByLineId(shopInfoDO.getLineId());
|
||||||
log.info("submitSignFranchise franchiseAgreementRequest :{}", JSONObject.toJSONString(franchiseAgreementRequest));
|
log.info("submitSignFranchise franchiseAgreementRequest :{}", JSONObject.toJSONString(franchiseAgreementRequest));
|
||||||
ResponseResult responseResult = coolStoreStartFlowService.franchiseAgreement(franchiseAgreementRequest, memberQuestionDO.getJoinType());
|
|
||||||
//更新状态为加盟商
|
//更新状态为加盟商
|
||||||
LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(shopInfoDO.getLineId());
|
LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(shopInfoDO.getLineId());
|
||||||
lineInfoDO.setJoinStatus(2);
|
//暂时去掉
|
||||||
|
//lineInfoDO.setJoinStatus(2);
|
||||||
lineInfoMapper.insertOrUpdate(lineInfoDO);
|
lineInfoMapper.insertOrUpdate(lineInfoDO);
|
||||||
shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_83);
|
//todo 提交之后先直接到已签约 正常是待审核
|
||||||
return responseResult;
|
shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84);
|
||||||
|
return new ResponseResult(200000,"提交成功");
|
||||||
} else {
|
} else {
|
||||||
throw new ServiceException(ErrorCodeEnum.DUPLICATE_SUBMISSION);
|
throw new ServiceException(ErrorCodeEnum.DUPLICATE_SUBMISSION);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,17 +100,10 @@ public class TempUserDetailServiceImpl implements TempUserDetailService {
|
|||||||
if(tempUserDetailDO != null){
|
if(tempUserDetailDO != null){
|
||||||
throw new ServiceException("该员工已登记");
|
throw new ServiceException("该员工已登记");
|
||||||
}
|
}
|
||||||
EnterpriseUserDO enterpriseUserDO = enterpriseUserDAO.getUserInfoByThirdOaUniqueFlag(tempUserDetailRequest.getIdCard());
|
|
||||||
if(enterpriseUserDO == null){
|
|
||||||
throw new ServiceException("用户不存在");
|
|
||||||
}
|
|
||||||
ShopInfoDO shopInfoDO = shopInfoDAO.getShopInfo(tempUserDetailRequest.getShopId());
|
ShopInfoDO shopInfoDO = shopInfoDAO.getShopInfo(tempUserDetailRequest.getShopId());
|
||||||
if(shopInfoDO == null){
|
if(shopInfoDO == null){
|
||||||
throw new ServiceException("该店铺不存在");
|
throw new ServiceException("该店铺不存在");
|
||||||
}
|
}
|
||||||
// if(StringUtil.isNotBlank(shopInfoDO.getStoreNum())){
|
|
||||||
// throw new ServiceException("系统建店已完成,无法手动登记");
|
|
||||||
// }
|
|
||||||
tempUserDetailDO = new TempUserDetailDO();
|
tempUserDetailDO = new TempUserDetailDO();
|
||||||
tempUserDetailDO.setLineId(shopInfoDO.getLineId());
|
tempUserDetailDO.setLineId(shopInfoDO.getLineId());
|
||||||
tempUserDetailDO.setShopId(tempUserDetailRequest.getShopId());
|
tempUserDetailDO.setShopId(tempUserDetailRequest.getShopId());
|
||||||
@@ -137,19 +130,19 @@ public class TempUserDetailServiceImpl implements TempUserDetailService {
|
|||||||
shopStageInfoDAO.updateShopStageInfo(tempUserDetailDO.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_60);
|
shopStageInfoDAO.updateShopStageInfo(tempUserDetailDO.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_60);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> userIdList = enterpriseUserRoleDao.getUserIdsByRoleIdList(Collections.singletonList(UserRoleEnum.TRAINER.getCode()));
|
// List<String> userIdList = enterpriseUserRoleDao.getUserIdsByRoleIdList(Collections.singletonList(UserRoleEnum.TRAINER.getCode()));
|
||||||
RegionDO regionDO = regionDao.getRegionById(shopInfoDO.getRegionId());
|
// RegionDO regionDO = regionDao.getRegionById(shopInfoDO.getRegionId());
|
||||||
//
|
// //
|
||||||
if (regionDO != null && regionDO.getParentId() != null){
|
// if (regionDO != null && regionDO.getParentId() != null){
|
||||||
userIdList = enterpriseUserDAO.getUserIdListByRegionId(Long.valueOf(regionDO.getParentId()), userIdList);
|
// userIdList = enterpriseUserDAO.getUserIdListByRegionId(Long.valueOf(regionDO.getParentId()), userIdList);
|
||||||
|
//
|
||||||
Map<String, String> messageMap = new HashMap<>();
|
// Map<String, String> messageMap = new HashMap<>();
|
||||||
messageMap.put("userName", tempUserDetailRequest.getName());
|
// messageMap.put("userName", tempUserDetailRequest.getName());
|
||||||
messageMap.put("mobile", tempUserDetailRequest.getPhone());
|
// messageMap.put("mobile", tempUserDetailRequest.getPhone());
|
||||||
messageMap.put("registerTime", DateUtils.dateTime(tempUserDetailRequest.getRegisterTime()));
|
// messageMap.put("registerTime", DateUtils.dateTime(tempUserDetailRequest.getRegisterTime()));
|
||||||
messageMap.put("userDetailId", tempUserDetailDO.getId().toString());
|
// messageMap.put("userDetailId", tempUserDetailDO.getId().toString());
|
||||||
commonService.sendMessage(userIdList, MessageEnum.MESSAGE_21, messageMap);
|
// commonService.sendMessage(userIdList, MessageEnum.MESSAGE_21, messageMap);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -391,30 +391,6 @@ public class XxlJobHandler {
|
|||||||
XxlJobHelper.handleSuccess();
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 店铺新店开业状态更新
|
* 店铺新店开业状态更新
|
||||||
|
|||||||
Reference in New Issue
Block a user