|
|
@ -17,7 +17,9 @@ import com.qs.serve.modules.goods.entity.dto.TbsCenterDto; |
|
|
|
import com.qs.serve.modules.goods.service.GoodsCategoryService; |
|
|
|
import com.qs.serve.modules.goods.service.GoodsSkuService; |
|
|
|
import com.qs.serve.modules.goods.service.GoodsSpuService; |
|
|
|
import com.qs.serve.modules.sys.entity.SysAttach; |
|
|
|
import com.qs.serve.modules.sys.entity.SysUser; |
|
|
|
import com.qs.serve.modules.sys.service.SysAttachService; |
|
|
|
import com.qs.serve.modules.sys.service.SysUserService; |
|
|
|
import com.qs.serve.modules.tbs.common.TbsCenterType; |
|
|
|
import com.qs.serve.modules.tbs.common.TbsGoodsType; |
|
|
@ -73,6 +75,9 @@ public class TbsBudgetServiceImpl extends ServiceImpl<TbsBudgetMapper,TbsBudget> |
|
|
|
private final TbsBudgetCostItemPolicyService tbsBudgetCostItemPolicyService; |
|
|
|
private final VtbFundFlowService vtbFundFlowService; |
|
|
|
|
|
|
|
private SysAttachService attachService; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void modify(TbsBudgetBo budgetBo) { |
|
|
@ -433,6 +438,12 @@ public class TbsBudgetServiceImpl extends ServiceImpl<TbsBudgetMapper,TbsBudget> |
|
|
|
a.setBudgetAmount(logList.stream().map(b->b.getAmount()).reduce(BigDecimal.ZERO,BigDecimal::add)); |
|
|
|
}); |
|
|
|
budgetVo.setScheduleItem(scheduleItemBudgets); |
|
|
|
|
|
|
|
if(CollectionUtil.isNotEmpty(budget.getAttachIds())){ |
|
|
|
List<String> attachIds = Arrays.asList(budget.getAttachIds()); |
|
|
|
List<SysAttach> attachList = attachService.listByIds(attachIds); |
|
|
|
budgetVo.setAttachList(attachList); |
|
|
|
} |
|
|
|
return budgetVo; |
|
|
|
} |
|
|
|
|
|
|
|