薪酬系统-福利台账,福利核算逻辑优化,支持未设置基数,仅设置固定值的福利档案的核算

This commit is contained in:
sy 2023-09-15 15:38:20 +08:00
parent 38bffb2a8b
commit 3826e89a72
1 changed files with 48 additions and 0 deletions

View File

@ -614,6 +614,14 @@ public class SIAccountBiz extends Service {
}
});
}
//避免福利档案的方案未设置基数导致核算时遗漏这些福利项的核算遍历下方案相关福利项并将遗漏的福利项id添加
if(otherPerson.size() > 0) {
otherPerson.forEach((id, object) -> {
if (!needArchivesPerson.contains(id)) {
needArchivesPerson.add(id);
}
});
}
//判断核算周期核算月福利起始缴纳月的关系
checkCycleSettingWithStartMonth(otherPerson, billMonth, otherPO.getOtherStartTime());
@ -676,6 +684,14 @@ public class SIAccountBiz extends Service {
}
});
}
//避免福利档案的方案未设置基数导致核算时遗漏这些福利项的核算遍历下方案相关福利项并将遗漏的福利项id添加
if(otherCom.size() > 0) {
otherCom.forEach((id, object) -> {
if (!needArchivesCom.contains(id)) {
needArchivesCom.add(id);
}
});
}
//判断核算周期核算月福利起始缴纳月的关系
checkCycleSettingWithStartMonth(otherCom, billMonth, otherPO.getOtherStartTime());
@ -756,6 +772,14 @@ public class SIAccountBiz extends Service {
}
});
}
//避免福利档案的方案未设置基数导致核算时遗漏这些福利项的核算遍历下方案相关福利项并将遗漏的福利项id添加
if(fundperson.size() > 0) {
fundperson.forEach((id, object) -> {
if (!needArchivesPerson.contains(id)) {
needArchivesPerson.add(id);
}
});
}
//判断核算周期核算月福利起始缴纳月的关系
checkCycleSettingWithStartMonth(fundperson, billMonth, fundPO.getFundStartTime());
@ -817,6 +841,14 @@ public class SIAccountBiz extends Service {
}
});
}
//避免福利档案的方案未设置基数导致核算时遗漏这些福利项的核算遍历下方案相关福利项并将遗漏的福利项id添加
if(fundCom.size() > 0) {
fundCom.forEach((id, object) -> {
if (!needArchivesCom.contains(id)) {
needArchivesCom.add(id);
}
});
}
//判断核算周期核算月福利起始缴纳月的关系
checkCycleSettingWithStartMonth(fundCom, billMonth, fundPO.getFundStartTime());
@ -900,6 +932,14 @@ public class SIAccountBiz extends Service {
}
});
}
//避免福利档案的方案未设置基数导致核算时遗漏这些福利项的核算遍历下方案相关福利项并将遗漏的福利项id添加
if(schemeperson.size() > 0) {
schemeperson.forEach((id, object) -> {
if (!needArchivesPerson.contains(id)) {
needArchivesPerson.add(id);
}
});
}
//判断核算周期核算月福利起始缴纳月的关系
checkCycleSettingWithStartMonth(schemeperson, billMonth, socialPO.getSocialStartTime());
@ -961,6 +1001,14 @@ public class SIAccountBiz extends Service {
}
});
}
//避免福利档案的方案未设置基数导致核算时遗漏这些福利项的核算遍历下方案相关福利项并将遗漏的福利项id添加
if(schemeCom.size() > 0) {
schemeCom.forEach((id, object) -> {
if (!needArchivesCom.contains(id)) {
needArchivesCom.add(id);
}
});
}
//判断核算周期核算月福利起始缴纳月的关系
checkCycleSettingWithStartMonth(schemeCom, billMonth, socialPO.getSocialStartTime());