From 6703561346ee0846401ee31ffeb22dfcd60e08ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?yinjinlu-pc=5C=E5=B0=B9=E9=87=91=E8=B7=AF?=
<411641505@qq.com>
Date: Sun, 8 Sep 2024 18:38:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=A2=9E=E5=8A=A0=E7=94=9F?=
=?UTF-8?q?=E4=BA=A7=E6=97=A5=E6=9C=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ktg/mes/wm/domain/WmMaterialStock.java | 21 ++++++++++++-------
.../mapper/wm/WmMaterialStockMapper.xml | 6 +++++-
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmMaterialStock.java b/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmMaterialStock.java
index 8e4afc0..950e6fd 100644
--- a/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmMaterialStock.java
+++ b/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmMaterialStock.java
@@ -50,11 +50,9 @@ public class WmMaterialStock extends BaseEntity
private String batchCode;
/** 仓库ID */
- @Excel(name = "仓库ID")
private Long warehouseId;
/** 仓库编码 */
- @Excel(name = "仓库编码")
private String warehouseCode;
/** 仓库名称 */
@@ -62,11 +60,9 @@ public class WmMaterialStock extends BaseEntity
private String warehouseName;
/** 库区ID */
- @Excel(name = "库区ID")
private Long locationId;
/** 库区编码 */
- @Excel(name = "库区编码")
private String locationCode;
/** 库区名称 */
@@ -74,11 +70,9 @@ public class WmMaterialStock extends BaseEntity
private String locationName;
/** 库位ID */
- @Excel(name = "库位ID")
private Long areaId;
/** 库位编码 */
- @Excel(name = "库位编码")
private String areaCode;
/** 库位名称 */
@@ -86,7 +80,6 @@ public class WmMaterialStock extends BaseEntity
private String areaName;
/** 供应商ID */
- @Excel(name = "供应商ID")
private Long vendorId;
/** 供应商编号 */
@@ -114,6 +107,12 @@ public class WmMaterialStock extends BaseEntity
@Excel(name = "生产工单编号")
private String workorderCode;
+ /** 生产日期 */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date productionDate;
+
+
/** 库存有效期 */
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
@Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
@@ -375,6 +374,14 @@ public class WmMaterialStock extends BaseEntity
return expireDate;
}
+ public Date getProductionDate() {
+ return productionDate;
+ }
+
+ public void setProductionDate(Date productionDate) {
+ this.productionDate = productionDate;
+ }
+
public String getFrozenFlag() {
return frozenFlag;
}
diff --git a/ktg-mes/src/main/resources/mapper/wm/WmMaterialStockMapper.xml b/ktg-mes/src/main/resources/mapper/wm/WmMaterialStockMapper.xml
index 0f20320..81bbe39 100644
--- a/ktg-mes/src/main/resources/mapper/wm/WmMaterialStockMapper.xml
+++ b/ktg-mes/src/main/resources/mapper/wm/WmMaterialStockMapper.xml
@@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
@@ -43,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select material_stock_id, item_type_id, item_id, item_code, item_name, specification, unit_of_measure, batch_code, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, vendor_id, vendor_code, vendor_name, vendor_nick, quantity_onhand,recpt_date,workorder_id,workorder_code, expire_date, frozen_flag, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_material_stock
+ select material_stock_id, item_type_id, item_id, item_code, item_name, specification, unit_of_measure, batch_code, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, vendor_id, vendor_code, vendor_name, vendor_nick, quantity_onhand,recpt_date,workorder_id,workorder_code, expire_date, production_date,frozen_flag, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_material_stock