diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml
index dbc77d3..da71a92 100644
--- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml
+++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml
@@ -17,6 +17,7 @@
+
@@ -62,6 +63,7 @@
bbi.pallet_info_code,
bbi.bind_barcode,
bbi.material_id,
+ bbi.barcode_spec,
bmi.material_code,
bmi.material_name,
bmi.material_spec,
@@ -116,6 +118,8 @@
'%')
and replace(bmi.material_spec,' ','') like concat('%', #{materialSpec},
'%')
+ and replace(bbi.barcode_spec,' ','') like concat('%', #{barcodeSpec},
+ '%')
and bbi.manufacturer_id = #{manufacturerId}
and bbi.amount = #{amount}
@@ -123,14 +127,16 @@
'%')
and bbi.print_number = #{printNumber}
- and bbi.po_no = #{poNo}
+ and bbi.po_no like concat('%', #{poNo},
+ '%')
and bbi.production_date = #{productionDate}
and bbi.accepted_date = #{acceptedDate}
and bbi.last_outstock_date = #{lastOutstockDate}
and bbi.plan_code = #{planCode}
and bbi.plan_detail_code = #{planDetailCode}
and bbi.sale_order_id = #{saleOrderId}
- and bbi.saleorder_code = #{saleorderCode}
+ and bbi.saleorder_code like concat('%', #{saleorderCode},
+ '%')
and bbi.project_no = #{projectNo}
and bbi.serial_number = #{serialNumber}
and bbi.bind_status = #{bindStatus}
@@ -145,8 +151,6 @@
(select 1 from mes_base_barcode_info mbbi where mbbi.plan_detail_code =#{planDetailCode}
and bbi.bind_barcode=mbbi.barcode_info)
-
-
order by bbi.barcode_id desc
@@ -171,6 +175,7 @@
pallet_info_code,
bind_barcode,
material_id,
+ barcode_spec,
manufacturer_id,
amount,
product_barcode,
@@ -208,6 +213,7 @@
#{palletInfoCode},
#{bindBarcode},
#{materialId},
+ #{barcodeSpec},
#{manufacturerId},
#{amount},
#{productBarcode},
@@ -357,6 +363,7 @@
bbi.pallet_info_code,
bbi.bind_barcode,
bbi.material_id,
+ bbi.barcode_spec,
bbi.manufacturer_id,
bbi.product_barcode,
bbi.amount,
@@ -390,9 +397,9 @@
- INSERT INTO mes_base_barcode_info (batch_flag,barcode_type,barcode_info,batch_code,material_id,manufacturer_id,amount,purchase_order_id,po_no,production_date,accepted_date,last_outstock_date,plan_code,plan_detail_code,safe_flag,sale_order_id,saleorder_code,project_no,serial_number,remark,bind_status,update_by,update_time) VALUES
+ INSERT INTO mes_base_barcode_info (batch_flag,barcode_type,barcode_info,batch_code,material_id,barcode_spec,manufacturer_id,amount,purchase_order_id,po_no,production_date,accepted_date,last_outstock_date,plan_code,plan_detail_code,safe_flag,sale_order_id,saleorder_code,project_no,serial_number,remark,bind_status,update_by,update_time) VALUES
- ( #{item.batchFlag}, #{item.barcodeType}, #{item.barcodeInfo}, #{item.batchCode}, #{item.materialId}, #{item.manufacturerId}, #{item.amount}, #{item.purchaseOrderId}, #{item.poNo}, #{item.productionDate}, #{item.acceptedDate}, #{item.lastOutstockDate}, #{item.planCode},#{item.planDetailCode}, #{item.safeFlag},#{item.saleOrderId}, #{item.saleorderCode},#{item.projectNo}, #{item.serialNumber},#{item.remark}, #{item.bindStatus},#{item.updateBy}, #{item.updateTime})
+ ( #{item.batchFlag}, #{item.barcodeType}, #{item.barcodeInfo}, #{item.batchCode}, #{item.materialId}, #{item.barcodeSpec}, #{item.manufacturerId}, #{item.amount}, #{item.purchaseOrderId}, #{item.poNo}, #{item.productionDate}, #{item.acceptedDate}, #{item.lastOutstockDate}, #{item.planCode},#{item.planDetailCode}, #{item.safeFlag},#{item.saleOrderId}, #{item.saleorderCode},#{item.projectNo}, #{item.serialNumber},#{item.remark}, #{item.bindStatus},#{item.updateBy}, #{item.updateTime})
diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml
index 008f0cb..7c4cf44 100644
--- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml
+++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml
@@ -36,6 +36,7 @@
+
@@ -72,7 +73,8 @@
bmi.update_by,
bmi.update_time,
bmi.approve_date,
- bmi.erp_modify_date
+ bmi.erp_modify_date,
+ bmi.safe_stock_amount
from mes_base_material_info bmi
left join mes_base_material_type bmt on bmt.matrial_type_id = bmi.material_type_id
@@ -216,6 +218,7 @@
update_by = #{updateBy},
update_time = #{updateTime},
approve_date = #{approveDate},
+ safe_stock_amount = #{safeStockAmount},
erp_modify_date = #{erpModifyDate},
always_flag = #{alwaysFlag},
batch_amount = #{batchAmount},
diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesOrderBindMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesOrderBindMapper.xml
index ba3e6d1..d7c18ea 100644
--- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesOrderBindMapper.xml
+++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesOrderBindMapper.xml
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
@@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select order_bind_id, safe_flag, sale_order_id, sale_order_code, product_id, product_code, product_name, purchase_order_id, po_no, material_id, material_code, material_name, bind_amount, remark, create_by, create_time, update_by, update_time from mes_order_bind
+ select order_bind_id, safe_flag, sale_order_id, sale_order_code, product_id, product_code, product_name, purchase_order_id, po_no, material_id, material_code, material_name, bind_amount, barcode_amount,remark, create_by, create_time, update_by, update_time from mes_order_bind
+
+
+
+
+
+
+
+
+
+
+