Commit 4963e019 authored by huyuchen's avatar huyuchen

huych-合同自动化代码提交

parent 49ac60b3
...@@ -301,6 +301,18 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi ...@@ -301,6 +301,18 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
.set(TAttaInfo::getDomainId, CommonConstants.EMPTY_STRING); .set(TAttaInfo::getDomainId, CommonConstants.EMPTY_STRING);
// 执行更新操作,清空附件的关联ID // 执行更新操作,清空附件的关联ID
attaInfoService.update(updateWrapper); attaInfoService.update(updateWrapper);
//清空合同待签订数据
if (preVo.getServerItem().contains("合同") && null != preVo.getEmployeeContractPreVos() &&
Common.isNotNull(preVo.getEmployeeContractPreVos().getContractFlag()) &&
CommonConstants.ZERO_STRING.equals(preVo.getEmployeeContractPreVos().getContractFlag())) {
//查询老的合同明细
TEmployeeContractPre contractOld = contractPreMapper.selectOne(Wrappers.<TEmployeeContractPre>query().lambda()
.eq(TEmployeeContractPre::getRegisterId,pre.getId())
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(contractOld)) {
baseMapper.deleteById(contractOld);
}
}
} }
baseMapper.insert(pre); baseMapper.insert(pre);
//附件赋值 //附件赋值
......
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