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}