瀏覽代碼

update 修改代码

wks 5 月之前
父節點
當前提交
3e670009ae
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      ruoyi-admin-wms/src/main/java/com/ruoyi/wms/service/InventoryHistoryService.java

+ 1 - 1
ruoyi-admin-wms/src/main/java/com/ruoyi/wms/service/InventoryHistoryService.java

@@ -46,7 +46,7 @@ public class InventoryHistoryService extends ServiceImpl<InventoryHistoryMapper,
             } else {
                 inventoryHistory.setQuantity(detail.getQuantity().negate());
             }
-            inventoryHistory.setUnit(detail.getBaseUnit());
+            inventoryHistory.setUnit(detail.getUnit());
             inventoryHistory.setWarehouseId(detail.getWarehouseId());
             inventoryHistory.setAmount(detail.getAmount());
             inventoryHistory.setBeforeQuantity(detail.getBeforeQuantity());