From 7ebe16b9abbee8e884db27d2ec360f17455b14f2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 24 八月 2021 09:03:07 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/ViewWorkInMapper.xml |   54 ++++++++++++++++++++++++------------------------------
 1 files changed, 24 insertions(+), 30 deletions(-)

diff --git a/src/main/resources/mapper/ViewWorkInMapper.xml b/src/main/resources/mapper/ViewWorkInMapper.xml
index b8c0865..c026e3a 100644
--- a/src/main/resources/mapper/ViewWorkInMapper.xml
+++ b/src/main/resources/mapper/ViewWorkInMapper.xml
@@ -8,22 +8,19 @@
 		<if test="loc_no!=null and loc_no!='' ">
 			and loc_no like '%' + #{loc_no} + '%'
 		</if>
-		<if test="matnr!=null and matnr!='' ">
-			and matnr like '%' + #{matnr} + '%'
+		<if test="mat_no!=null and mat_no!='' ">
+			and mat_no like '%' + #{mat_no} + '%'
 		</if>
-		<if test="maktx!=null and maktx!='' ">
-			and (maktx like '%' + #{maktx} + '%'
-			or matnr like '%' + #{maktx} + '%'
-			or lgnum like '%' + #{maktx} + '%'
-			or tbnum like '%' + #{maktx} + '%'
-			or tbpos like '%' + #{maktx} + '%'
-			or zmatid like '%' + #{maktx} + '%'
-			or maktx like '%' + #{maktx} + '%'
-			or werks like '%' + #{maktx} + '%'
-			or anfme like '%' + #{maktx} + '%'
-			or altme like '%' + #{maktx} + '%'
-			or zpallet like '%' + #{maktx} + '%'
-			or bname like '%' + #{maktx} + '%'
+		<if test="mat_name!=null and mat_name!='' ">
+			and (loc_no like '%' + #{mat_name} + '%'
+			or mat_name like '%' + #{mat_name} + '%'
+			or specs like '%' + #{mat_name} + '%'
+			or size like '%' + #{mat_name} + '%'
+			or color like '%' + #{mat_name} + '%'
+			or weight like '%' + #{mat_name} + '%'
+			or qty like '%' + #{qty} + '%'
+			or unit like '%' + #{mat_name} + '%'
+			or zpallet like '%' + #{mat_name} + '%'
 			)
 		</if>
 		<if test="begin_date!=null and begin_date!='' ">
@@ -42,22 +39,19 @@
 		<if test="loc_no!=null and loc_no!='' ">
 			and loc_no like '%' + #{loc_no} + '%'
 		</if>
-		<if test="matnr!=null and matnr!='' ">
-			and matnr like '%' + #{matnr} + '%'
+		<if test="mat_no!=null and mat_no!='' ">
+			and mat_no like '%' + #{mat_no} + '%'
 		</if>
-		<if test="maktx!=null and maktx!='' ">
-			and (maktx like '%' + #{maktx} + '%'
-			or matnr like '%' + #{maktx} + '%'
-			or lgnum like '%' + #{maktx} + '%'
-			or tbnum like '%' + #{maktx} + '%'
-			or tbpos like '%' + #{maktx} + '%'
-			or zmatid like '%' + #{maktx} + '%'
-			or maktx like '%' + #{maktx} + '%'
-			or werks like '%' + #{maktx} + '%'
-			or anfme like '%' + #{maktx} + '%'
-			or altme like '%' + #{maktx} + '%'
-			or zpallet like '%' + #{maktx} + '%'
-			or bname like '%' + #{maktx} + '%'
+		<if test="mat_name!=null and mat_name!='' ">
+			and (loc_no like '%' + #{mat_name} + '%'
+			or mat_name like '%' + #{mat_name} + '%'
+			or specs like '%' + #{mat_name} + '%'
+			or size like '%' + #{mat_name} + '%'
+			or color like '%' + #{mat_name} + '%'
+			or weight like '%' + #{mat_name} + '%'
+			or qty like '%' + #{qty} + '%'
+			or unit like '%' + #{mat_name} + '%'
+			or zpallet like '%' + #{mat_name} + '%'
 			)
 		</if>
 		<if test="begin_date!=null and begin_date!='' ">

--
Gitblit v1.9.1