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/ViewStayTimeMapper.xml | 26 ++++++++++++--------------
1 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/src/main/resources/mapper/ViewStayTimeMapper.xml b/src/main/resources/mapper/ViewStayTimeMapper.xml
index bc23e60..faf5a03 100644
--- a/src/main/resources/mapper/ViewStayTimeMapper.xml
+++ b/src/main/resources/mapper/ViewStayTimeMapper.xml
@@ -8,8 +8,8 @@
<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="stay_time!=null and stay_time!='' ">
and stay_time > #{stay_time}
@@ -17,17 +17,15 @@
<!-- <if test="appe_time!=null and appe_time!='' "> -->
<!-- and appe_time > #{appe_time} -->
<!-- </if> -->
- <if test="maktx!=null and maktx!='' ">
- and (maktx like '%' + #{maktx} + '%'
- or lgnum like '%' + #{maktx} + '%'
- or tbnum like '%' + #{maktx} + '%'
- or tbpos like '%' + #{maktx} + '%'
- or zmatid 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 (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!='' ">
@@ -45,7 +43,7 @@
<!-- 鍒嗛〉鏌ヨ鎵�鏈変俊鎭� -->
<select id="queryViewStayTimeList" parameterType="com.zy.asrs.entity.ViewStayTimeBean" resultType="com.zy.asrs.entity.ViewStayTimeBean">
select * from (
-select *,ROW_NUMBER() OVER(Order by appe_time,loc_no,matnr) as rowid
+select *,ROW_NUMBER() OVER(Order by appe_time,loc_no,mat_no) as rowid
from asr_stk_staytime_view
<where>
1=1
--
Gitblit v1.9.1