Commit 57184972 authored by huyuchen's avatar huyuchen

huych-社保自动化相关提交

parent 1de7ced9
...@@ -412,11 +412,12 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra ...@@ -412,11 +412,12 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra
} else { } else {
// 合同创建成功,继续调用FascService的submitContract方法 // 合同创建成功,继续调用FascService的submitContract方法
R<String> result = null; R<String> result = null;
TEmployeeContractPre contract = baseMapper.selectById(contractPre.getId());
try { try {
result = fascService.submitContract(contractPre.getId()); result = fascService.submitContract(contractPre.getId());
} catch (Exception e) { } catch (Exception e) {
// 更新合同: // 更新合同:
if (Common.isNotNull(contractPre.getContractId())) { if (Common.isNotNull(contract.getContractId())) {
TEmployeeContractInfo empContract = contractInfoService.getById(contractPre.getContractId()); TEmployeeContractInfo empContract = contractInfoService.getById(contractPre.getContractId());
empContract.setDeleteFlag(CommonConstants.ONE_INT); empContract.setDeleteFlag(CommonConstants.ONE_INT);
contractInfoService.updateById(empContract); contractInfoService.updateById(empContract);
...@@ -435,8 +436,8 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra ...@@ -435,8 +436,8 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra
.set(TEmployeeContractPre::getErrorTime, LocalDateTimeUtils.convertLDToDate(LocalDate.now())); .set(TEmployeeContractPre::getErrorTime, LocalDateTimeUtils.convertLDToDate(LocalDate.now()));
this.update(updateWrapper); this.update(updateWrapper);
// 更新合同: // 更新合同:
if (Common.isNotNull(contractPre.getContractId())) { if (Common.isNotNull(contract.getContractId())) {
TEmployeeContractInfo empContract = contractInfoService.getById(contractPre.getContractId()); TEmployeeContractInfo empContract = contractInfoService.getById(contract.getContractId());
empContract.setDeleteFlag(CommonConstants.ONE_INT); empContract.setDeleteFlag(CommonConstants.ONE_INT);
contractInfoService.updateById(empContract); contractInfoService.updateById(empContract);
} }
...@@ -456,10 +457,10 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra ...@@ -456,10 +457,10 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra
errorMessage.setData(contractVO); errorMessage.setData(contractVO);
errorMessageListAll.add(errorMessage); errorMessageListAll.add(errorMessage);
} else { } else {
if (Common.isNotNull(contractPre.getContractId())) { if (Common.isNotNull(contract.getContractId())) {
TEmployeeContractAudit audit = new TEmployeeContractAudit(); TEmployeeContractAudit audit = new TEmployeeContractAudit();
audit.setRootName("签署中"); audit.setRootName("签署中");
audit.setLinkId(contractPre.getContractId()); audit.setLinkId(contract.getContractId());
audit.setLinkType(CommonConstants.ONE_INT); audit.setLinkType(CommonConstants.ONE_INT);
audit.setCreateName("法大大电子签"); audit.setCreateName("法大大电子签");
audit.setCreateBy("1"); audit.setCreateBy("1");
......
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