Commit 9c5cdb29 authored by 刘帅's avatar 刘帅

1.出库单保存创建人所在部门

parent 3839c385
......@@ -168,7 +168,7 @@ public class ErpMaterialPickingServiceImpl implements IErpMaterialPickingService
add.setVendorName(materialVendor.getVendorName());
BigDecimal moneyTotal = bo.getMaterialList().stream().map(ErpMaterialPickingInfoAddBo::getMoney).reduce(BigDecimal.ZERO, BigDecimal::add);
add.setOutMoney(moneyTotal);
add.setCreateDeptId(LoginHelper.getUserId());
add.setCreateDeptId(LoginHelper.getDeptId());
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
......
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