Compare commits
2 Commits
d01c9bf06f
...
552cee8a6f
| Author | SHA1 | Date |
|---|---|---|
|
|
552cee8a6f | |
|
|
0e93cbab04 |
|
|
@ -1,5 +1,6 @@
|
||||||
package com.engine.salary.entity.salaryacct.bo;
|
package com.engine.salary.entity.salaryacct.bo;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.engine.salary.constant.TaxDeclarationDataIndexConstant;
|
import com.engine.salary.constant.TaxDeclarationDataIndexConstant;
|
||||||
import com.engine.salary.entity.salaryacct.po.SalaryAcctResultPO;
|
import com.engine.salary.entity.salaryacct.po.SalaryAcctResultPO;
|
||||||
import com.engine.salary.entity.salaryitem.po.SalaryItemPO;
|
import com.engine.salary.entity.salaryitem.po.SalaryItemPO;
|
||||||
|
|
@ -73,6 +74,9 @@ public class SalaryAcctConsolidatedTaxBO {
|
||||||
.filter(e -> Objects.equals(e.getSalaryItemId(), optional.get()))
|
.filter(e -> Objects.equals(e.getSalaryItemId(), optional.get()))
|
||||||
.map(e -> SalaryEntityUtil.empty2Zero(e.getResultValue()))
|
.map(e -> SalaryEntityUtil.empty2Zero(e.getResultValue()))
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||||
|
if (StrUtil.isBlank(resultValue)) {
|
||||||
|
resultValue = "0.00";
|
||||||
|
}
|
||||||
return new BigDecimal(resultValue).add(income).toPlainString();
|
return new BigDecimal(resultValue).add(income).toPlainString();
|
||||||
}
|
}
|
||||||
// 个税调差为0
|
// 个税调差为0
|
||||||
|
|
@ -98,6 +102,9 @@ public class SalaryAcctConsolidatedTaxBO {
|
||||||
.map(e -> SalaryEntityUtil.empty2Zero(e.getResultValue()))
|
.map(e -> SalaryEntityUtil.empty2Zero(e.getResultValue()))
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||||
}
|
}
|
||||||
|
if (StrUtil.isBlank(resultValue)) {
|
||||||
|
resultValue = "0.00";
|
||||||
|
}
|
||||||
return new BigDecimal(resultValue).add(refundedOrSupplementedTax).subtract(taxAdjustment).toPlainString();
|
return new BigDecimal(resultValue).add(refundedOrSupplementedTax).subtract(taxAdjustment).toPlainString();
|
||||||
}
|
}
|
||||||
return resultValue;
|
return resultValue;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import java.util.Collection;
|
||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class SalaryAcctCalculateParam {
|
public class SalaryAcctCalculateParam {
|
||||||
|
|
||||||
//核算人员的id,不是employeeId而是salaryAcctEmpId
|
//核算人员的id,不是employeeId而是salaryAcctEmpId
|
||||||
private Collection<Long> ids;
|
private Collection<Long> ids;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue