薪酬系统-福利档案,档案编辑中更新档案主表和子表的关联关系
This commit is contained in:
parent
a5eb86ab06
commit
681c0fb18e
|
|
@ -705,7 +705,7 @@ public class SIArchivesBiz {
|
|||
|
||||
/**
|
||||
* @param paramReq
|
||||
* @param employeeId
|
||||
* @param
|
||||
*/
|
||||
public void otherSave(InsuranceArchivesSaveParam paramReq, User user, boolean welBaseDiffSign) {
|
||||
long employeeId = user.getUID();
|
||||
|
|
@ -781,8 +781,9 @@ public class SIArchivesBiz {
|
|||
if(baseInfoPO != null && baseInfoPO.getEmployeeType() != null && baseInfoPO.getEmployeeType().equals(DataCollectionEmployeeTypeEnum.EXT_EMPLOYEE.getValue())) {
|
||||
//对于非系统人员,编辑后状态切换为正在缴纳
|
||||
baseInfoPO.setRunStatus(EmployeeStatusEnum.PAYING.getValue());
|
||||
getInsuranceBaseInfoMapper().updateById(baseInfoPO);
|
||||
}
|
||||
baseInfoPO.setOtherArchivesId(updateOtherInfo.getId());
|
||||
getInsuranceBaseInfoMapper().updateById(baseInfoPO);
|
||||
sqlSession.commit();
|
||||
} else {
|
||||
otherSchemeMapper.deleteByEmployeeIdAndPayOrg(InsuranceArchivesOtherSchemePO.builder()
|
||||
|
|
@ -851,7 +852,7 @@ public class SIArchivesBiz {
|
|||
|
||||
/**
|
||||
* @param paramReq
|
||||
* @param employeeId
|
||||
* @param
|
||||
*/
|
||||
public void fundSave(InsuranceArchivesSaveParam paramReq, User user, boolean welBaseDiffSign) {
|
||||
long employeeId = user.getUID();
|
||||
|
|
@ -927,8 +928,9 @@ public class SIArchivesBiz {
|
|||
if(baseInfoPO != null && baseInfoPO.getEmployeeType() != null && baseInfoPO.getEmployeeType().equals(DataCollectionEmployeeTypeEnum.EXT_EMPLOYEE.getValue())) {
|
||||
//对于非系统人员,编辑后状态切换为正在缴纳
|
||||
baseInfoPO.setRunStatus(EmployeeStatusEnum.PAYING.getValue());
|
||||
getInsuranceBaseInfoMapper().updateById(baseInfoPO);
|
||||
}
|
||||
baseInfoPO.setFundArchivesId(updateFundInfo.getId());
|
||||
getInsuranceBaseInfoMapper().updateById(baseInfoPO);
|
||||
sqlSession.commit();
|
||||
} else {
|
||||
fundSchemeMapper.deleteByEmployeeIdAndPayOrg(InsuranceArchivesFundSchemePO.builder()
|
||||
|
|
@ -1001,7 +1003,7 @@ public class SIArchivesBiz {
|
|||
|
||||
/**
|
||||
* @param paramReq
|
||||
* @param employeeId
|
||||
* @param
|
||||
*/
|
||||
public void socialSave(InsuranceArchivesSaveParam paramReq, User user, boolean welBaseDiffSign) {
|
||||
long employeeId = user.getUID();
|
||||
|
|
@ -1084,8 +1086,9 @@ public class SIArchivesBiz {
|
|||
if(baseInfoPO != null && baseInfoPO.getEmployeeType() != null && baseInfoPO.getEmployeeType().equals(DataCollectionEmployeeTypeEnum.EXT_EMPLOYEE.getValue())) {
|
||||
//对于非系统人员,编辑后状态切换为正在缴纳
|
||||
baseInfoPO.setRunStatus(EmployeeStatusEnum.PAYING.getValue());
|
||||
getInsuranceBaseInfoMapper().updateById(baseInfoPO);
|
||||
}
|
||||
baseInfoPO.setSocialArchivesId(updateSocialInfo.getId());
|
||||
getInsuranceBaseInfoMapper().updateById(baseInfoPO);
|
||||
sqlSession.commit();
|
||||
} else {
|
||||
socialSchemeMapper.deleteByEmployeeIdAndPayOrg(InsuranceArchivesSocialSchemePO.builder()
|
||||
|
|
|
|||
Loading…
Reference in New Issue