Commit 84820006 by kangxiaoshan

dmp收入

parent da158cd9
...@@ -449,9 +449,9 @@ public class DmpIncomeServiceImpl implements DmpIncomeService { ...@@ -449,9 +449,9 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
if (StringUtils.isEmpty(income.getContractCode())) { if (StringUtils.isEmpty(income.getContractCode())) {
return null; return null;
} }
Double drate = StringUtils.isEmpty(income.getTaxRate()) ? 0 : Double.parseDouble(income.getTaxRate());
Double taxRate = new BigDecimal(income.getTaxRate()).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); drate = new BigDecimal(drate * 100).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
income.setTaxRate(taxRate * 100 + "%"); income.setTaxRate(drate + "%");
if (StringUtils.isEmpty(income.getSysSettlement())) { if (StringUtils.isEmpty(income.getSysSettlement())) {
income.setSysSettlement("0"); income.setSysSettlement("0");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment