Commit 6af3f31c by jianshuqin

费用付款单增加保存内部分类

parent 35a2e961
......@@ -111,7 +111,11 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
costDomain.setCostNo(costNo);
CostTypeDomain costTypeDomain = costTypeDao.selectById(typeId);
costDomain.setCostType(costTypeDomain);
if (StringUtils.isNotBlank(costDetailDomains.get(0).getTypeInnerName())) {
costDomain.setTypeInnerName(costDetailDomains.get(0).getTypeInnerName());
} else {
costDomain.setTypeInnerName(costDomain.getTypeName());
}
costDomain.setAmount(costDetailDomains.stream().map(CostDetailDomain::getAmount).reduce(BigDecimal.ZERO, BigDecimal::add));
costDomain.setDic(costDetailDomains.get(0).getDic());
......
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