From 9afd96fe86606ad397abf487d3b2216ff3a99878 Mon Sep 17 00:00:00 2001
From: Huluwa22 <2667400744@qq.com>
Date: Fri, 21 Feb 2025 15:07:05 +0800
Subject: [PATCH] =?UTF-8?q?feat(stock):=20=E5=BA=93=E5=AD=98=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=8D=95=E9=87=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/java/com/wms/entity/table/Stock.java | 12 ++++++++++++
src/main/resources/mapper/StockMapper.xml | 9 +++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/wms/entity/table/Stock.java b/src/main/java/com/wms/entity/table/Stock.java
index c46c656..d00b436 100644
--- a/src/main/java/com/wms/entity/table/Stock.java
+++ b/src/main/java/com/wms/entity/table/Stock.java
@@ -156,6 +156,18 @@ public class Stock extends BaseEntity {
@ExcelExport("保质期")
private Double shelfLife;
+
+ @ExcelExport("单重")
+ private Double singleWeight;
+
+ public Double getSingleWeight() {
+ return singleWeight;
+ }
+
+ public void setSingleWeight(Double singleWeight) {
+ this.singleWeight = singleWeight;
+ }
+
public Stock() {
}
diff --git a/src/main/resources/mapper/StockMapper.xml b/src/main/resources/mapper/StockMapper.xml
index 62728b7..2b00a8c 100644
--- a/src/main/resources/mapper/StockMapper.xml
+++ b/src/main/resources/mapper/StockMapper.xml
@@ -27,12 +27,13 @@
+
select stock_id, warehouse_name, location_id, vehicle_id, goods_id, goods_name, batch_no, available_num, remain_num, real_num, provider_id,
provider_name, production_date, expiration_date, stock_status, goods_status, create_time, last_update_time, last_update_user, remark,
- is_inventory, inventory_task_id, current_location, shelf_life
+ is_inventory, inventory_task_id, current_location, shelf_life,single_weight
from tbl_app_stock
@@ -59,7 +60,7 @@
@@ -143,6 +145,7 @@
inventory_task_id,
current_location,
shelf_life,
+ single_weight
#{stockId},
@@ -169,6 +172,7 @@
#{inventoryTaskId},
#{currentLocation},
#{shelfLife},
+ #{singleWeight}
@@ -197,6 +201,7 @@
inventory_task_id = #{inventoryTaskId},
current_location = #{currentLocation},
shelf_life = #{shelfLife},
+ single_weight = #{singleWeight},
where stock_id = #{stockId}