Commit 94cf0b3d authored by huyuchen's avatar huyuchen

档案完整监控

parent 4de7b9ec
......@@ -36,6 +36,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeContractConstants;
import com.yifu.cloud.plus.v1.yifu.archives.entity.*;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeContractInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TPreEmpMainMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TPreEmployeeProjectMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.*;
import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants;
......@@ -93,8 +95,8 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
private final TEmployeeContractAuditService tEmployeeContractAuditService;
private final TEmployeeLogService tEmployeeLogService;
private final TWorkHandlerInfoService workHandlerInfoService;
private final TPreEmpMainService preEmpMainService;
private final TPreEmployeeProjectService preEmployeeProjectService;
private final TPreEmpMainMapper preEmpMainMapper;
private final TPreEmployeeProjectMapper preEmployeeProjectMapper;
@Autowired
private DaprSocialProperties socialProperties;
// 缓存信息
......@@ -1618,12 +1620,12 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
//签订类型正常签订的时候更新预入职列表
if (EmployeeConstants.SITUATION_ONE.equals(contract.getSituation())) {
//根据项目编码和身份证号查询预入职列表
TPreEmpMain empMain = preEmpMainService.getOne(Wrappers.<TPreEmpMain>query()
TPreEmpMain empMain = preEmpMainMapper.selectOne(Wrappers.<TPreEmpMain>query()
.lambda().eq(TPreEmpMain::getEmpIdcard, contract.getEmpIdcard())
.eq(TPreEmpMain::getDeptNo, contract.getDeptNo()));
if (Optional.ofNullable(empMain).isPresent()) {
//查询预入职项目档案表
TPreEmployeeProject preEmployeeProject = preEmployeeProjectService.getOne(Wrappers.<TPreEmployeeProject>query()
TPreEmployeeProject preEmployeeProject = preEmployeeProjectMapper.selectOne(Wrappers.<TPreEmployeeProject>query()
.lambda().eq(TPreEmployeeProject::getPreMainId, empMain.getId()));
if (Optional.ofNullable(preEmployeeProject).isPresent()) {
preEmployeeProject.setContractType(contract.getContractType());
......@@ -1631,7 +1633,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
preEmployeeProject.setPost(contract.getPost());
preEmployeeProject.setEnjoinDate(LocalDateTimeUtils.convertLDTToDate(contract.getEnjoinDate()));
preEmployeeProject.setTryPeriod(contract.getTryPeriod());
preEmployeeProjectService.save(preEmployeeProject);
preEmployeeProjectMapper.updateById(preEmployeeProject);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment