钱智 建模带出固定值
This commit is contained in:
parent
35db0c3ea8
commit
3339178ac5
|
|
@ -33,4 +33,12 @@ public class QzSocialInfoDTO {
|
|||
|
||||
// 公司比例
|
||||
private BigDecimal comPaymentProportion;
|
||||
|
||||
// 个人固定
|
||||
private BigDecimal paymentFixed;
|
||||
|
||||
// 公司固定
|
||||
private BigDecimal comPaymentFixed;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4258,12 +4258,19 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
Map<String, Object> socialJson = JSON.parseObject(socialArchive.getSocialPaymentBaseString(), new TypeReference<Map<String, Object>>() {});
|
||||
insuranceSchemeDetailMap.forEach((insuranceId, detailList) -> {
|
||||
Map<Integer, String> paymentProportionMap = SalaryEntityUtil.convert2Map(detailList, detail -> detail.getPaymentScope(), detail -> detail.getPaymentProportion());
|
||||
Map<Integer, String> paymentFixedCostMap = SalaryEntityUtil.convert2Map(detailList, detail -> detail.getPaymentScope(), detail -> detail.getFixedCost());
|
||||
// 个人缴纳比例
|
||||
String paymentProportionStr = paymentProportionMap.get(PaymentScopeEnum.SCOPE_PERSON.getValue());
|
||||
BigDecimal paymentProportion = NumberUtils.isCreatable(paymentProportionStr) ? new BigDecimal(paymentProportionStr) : null;
|
||||
// 公司缴纳比例
|
||||
String paymentProportionComStr = paymentProportionMap.get(PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
BigDecimal paymentProportionCom = NumberUtils.isCreatable(paymentProportionComStr) ? new BigDecimal(paymentProportionComStr) : null;
|
||||
// 个人固定
|
||||
String paymentFixedStr = paymentFixedCostMap.get(PaymentScopeEnum.SCOPE_PERSON.getValue());
|
||||
BigDecimal paymentFixed = NumberUtils.isCreatable(paymentFixedStr) ? new BigDecimal(paymentFixedStr) : null;
|
||||
// 公司固定
|
||||
String paymentFixedComStr = paymentFixedCostMap.get(PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
BigDecimal paymentFixedCom = NumberUtils.isCreatable(paymentFixedComStr) ? new BigDecimal(paymentFixedComStr) : null;
|
||||
// 缴纳基数
|
||||
String paymentBaseStr = socialJson.get(insuranceId.toString()) == null ? "" : socialJson.get(insuranceId.toString()).toString();
|
||||
BigDecimal paymentBase = NumberUtils.isCreatable(paymentBaseStr) ? new BigDecimal(paymentBaseStr) : null;
|
||||
|
|
@ -4273,6 +4280,8 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
.paymentBase(paymentBase)
|
||||
.paymentProportion(paymentProportion)
|
||||
.comPaymentProportion(paymentProportionCom)
|
||||
.paymentFixed(paymentFixed)
|
||||
.comPaymentFixed(paymentFixedCom)
|
||||
.build());
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue