Commit d1b8f5ba by kangxiaoshan

计算确认收入

parent e99917b8
...@@ -621,6 +621,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService { ...@@ -621,6 +621,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
@Override @Override
public PdIncome pdCreate(PdIncome income, User user) { public PdIncome pdCreate(PdIncome income, User user) {
income.setCreateTime(new Date()); income.setCreateTime(new Date());
income.setInputDate(DateTime.now().toString("yyyy-MM-dd"));
income.setInputUser(user.getName()); income.setInputUser(user.getName());
if (StringUtils.isEmpty(income.getAcceptanceAmount())) { if (StringUtils.isEmpty(income.getAcceptanceAmount())) {
Long rax = Long.parseLong(income.getTaxRate().replace("%", "")) / 100 + 1; Long rax = Long.parseLong(income.getTaxRate().replace("%", "")) / 100 + 1;
...@@ -629,7 +630,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService { ...@@ -629,7 +630,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
} else { } else {
income.setConfirmIncome("0"); income.setConfirmIncome("0");
} }
return pdIncomeRepository.save(income); return pdIncomeRepository.save(income);
} }
......
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