From 4a2c6796c89f6889bbdd3e9630fee40a93c6473e Mon Sep 17 00:00:00 2001
From: admin <418351270@qq.com>
Date: 星期四, 11 一月 2024 08:53:44 +0800
Subject: [PATCH] 添加查询

---
 guns-vip-main/src/main/java/cn/stylefeng/guns/modular/om/productionOrderRecords/mapper/mapping/ProductionOrderRecordsMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/om/productionOrderRecords/mapper/mapping/ProductionOrderRecordsMapper.xml b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/om/productionOrderRecords/mapper/mapping/ProductionOrderRecordsMapper.xml
index aaf4a35..0d2ac03 100644
--- a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/om/productionOrderRecords/mapper/mapping/ProductionOrderRecordsMapper.xml
+++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/om/productionOrderRecords/mapper/mapping/ProductionOrderRecordsMapper.xml
@@ -37,6 +37,18 @@
         select
         <include refid="Base_Column_List"/>
         from om_production_order_records where 1 = 1
+        <if test="paramCondition.productNo != null and paramCondition.productNo != ''">
+            and product_no like CONCAT('%',#{paramCondition.productNo},'%')
+        </if>
+        <if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''">
+            and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%')
+        </if>
+        <if test="paramCondition.materialCode != null and paramCondition.materialCode != ''">
+            and material_code like CONCAT('%',#{paramCondition.materialCode},'%')
+        </if>
+        <if test="paramCondition.locationCode != null and paramCondition.locationCode != ''">
+            and location_code like CONCAT('%',#{paramCondition.locationCode},'%')
+        </if>
     </select>
 
     <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.om.productionOrderRecords.model.params.ProductionOrderRecordsParam">

--
Gitblit v1.9.3