| | |
| | | String nickName = currentUser.getNick_name(); |
| | | // 出库单流水id |
| | | Long outWarehouseFlowId = lWhFormTransfer.getOutWarehouseFlowId(); |
| | | if (outWarehouseFlowId == null){ |
| | | log.error("调拨失败!未找到出库单"); |
| | | return; |
| | | } |
| | | // 入库仓库类型 0机构1部门 |
| | | Integer inWarehouseType = lWhFormTransfer.getInWarehouseType(); |
| | | Long inWarehouseId = lWhFormTransfer.getInWarehouseId(); |
| | |
| | | synchronized (warehouseModelLockObj) { |
| | | // 根据出库流水ID 查询 出库的物品ID |
| | | outGoodsIds = getGoodsidByFlowId(outWarehouseFlowId, oldRecordId); |
| | | if (CollectionUtils.isEmpty(outGoodsIds)){ |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | throw new RuntimeException("入库单失败,未查询到物品!"); |
| | | } |
| | | // 库存物品详情(L_WH_GOODS)中 状态设置为1 |
| | | lWhGoodsService.modGoodsTransfering(outGoodsIds, inWarehouseType, inWarehouseId, inWarehouseName, goodsStatus); |
| | | |