薪酬系统-福利档案,编辑页详情返回编辑框对应参数缺失问题修复
This commit is contained in:
parent
e8aee9ab64
commit
56bb9a5af3
|
|
@ -322,7 +322,7 @@ public class SIArchivesBiz {
|
|||
}
|
||||
}
|
||||
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
||||
List<SearchConditionItem> inputItems = buildPaymentBase(user, schemeId, welfareType);
|
||||
List<SearchConditionItem> inputItems = buildPaymentBase(user, schemeId, welfareType, welBaseDiffSign);
|
||||
//如果查询结果中存在 方案中缺失福利险种的值,设置初始值
|
||||
for (SearchConditionItem item : inputItems) {
|
||||
String insuranceId = item.getDomkey().length > 0 ? item.getDomkey()[0] : null;
|
||||
|
|
@ -376,7 +376,7 @@ public class SIArchivesBiz {
|
|||
}
|
||||
|
||||
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
||||
List<SearchConditionItem> inputItems = buildPaymentBase(user, schemeId, welfareType);
|
||||
List<SearchConditionItem> inputItems = buildPaymentBase(user, schemeId, welfareType, welBaseDiffSign);
|
||||
//如果查询结果中存在 方案中缺失福利险种的值,设置初始值
|
||||
for (SearchConditionItem item : inputItems) {
|
||||
String insuranceId = item.getDomkey().length > 0 ? item.getDomkey()[0] : null;
|
||||
|
|
@ -429,7 +429,7 @@ public class SIArchivesBiz {
|
|||
}
|
||||
|
||||
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
||||
List<SearchConditionItem> inputItems = buildPaymentBase(user, schemeId, welfareType);
|
||||
List<SearchConditionItem> inputItems = buildPaymentBase(user, schemeId, welfareType, welBaseDiffSign);
|
||||
//如果查询结果中存在 方案中缺失福利险种的值,设置初始值
|
||||
for (SearchConditionItem item : inputItems) {
|
||||
String insuranceId = item.getDomkey().length > 0 ? item.getDomkey()[0] : null;
|
||||
|
|
@ -466,13 +466,22 @@ public class SIArchivesBiz {
|
|||
* @param schemeId
|
||||
* @return
|
||||
*/
|
||||
public List<SearchConditionItem> buildPaymentBase(User user, Long schemeId, Integer welfareType) {
|
||||
public List<SearchConditionItem> buildPaymentBase(User user, Long schemeId, Integer welfareType, boolean welBaseDiffSign) {
|
||||
List<SearchConditionItem> inputItems = new ArrayList<>();
|
||||
if (schemeId == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<InsuranceSchemeDetailPO> list = queryListByPrimaryIdIsPayment(schemeId, welfareType).stream()
|
||||
.filter(f -> f.getPaymentScope().equals(PaymentScopeEnum.SCOPE_PERSON.getValue())).collect(Collectors.toList());
|
||||
if (!welBaseDiffSign) {
|
||||
List<Long> perInsuranceIdList = list.stream().map(InsuranceSchemeDetailPO::getInsuranceId).collect(Collectors.toList());
|
||||
List<InsuranceSchemeDetailPO> moreComList = queryListByPrimaryIdIsPayment(schemeId, welfareType).stream()
|
||||
.filter(f -> f.getPaymentScope().equals(PaymentScopeEnum.SCOPE_COMPANY.getValue()) && !perInsuranceIdList.contains(f.getInsuranceId())).collect(Collectors.toList());
|
||||
if (moreComList.size() > 0) {
|
||||
list.addAll(moreComList);
|
||||
}
|
||||
}
|
||||
|
||||
SICategoryBiz siCategoryBiz = new SICategoryBiz();
|
||||
list.forEach(insuranceSchemeDetail -> {
|
||||
ICategoryPO iCategoryPO = siCategoryBiz.getByID(insuranceSchemeDetail.getInsuranceId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue