From 6fd276e85c43c6445840caa6e2891b7d3230490a Mon Sep 17 00:00:00 2001
From: 18516761980 <4761516tqsxp>
Date: 星期四, 02 九月 2021 15:48:04 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WaitMatinMapper.xml | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/main/resources/mapper/WaitMatinMapper.xml b/src/main/resources/mapper/WaitMatinMapper.xml
index 835eedb..8097c6a 100644
--- a/src/main/resources/mapper/WaitMatinMapper.xml
+++ b/src/main/resources/mapper/WaitMatinMapper.xml
@@ -31,8 +31,8 @@
<if test="bill_no!=null and bill_no!='' ">
and bill_no like '%' + #{bill_no} + '%'
</if>
- <if test="mat_no!=null and mat_no!='' ">
- and a.mat_no like '%' + #{mat_no} + '%'
+ <if test="bill_type!=null and bill_type!='' ">
+ and bill_type like '%' + #{bill_type} + '%'
</if>
<if test="mat_name!=null and mat_name!='' ">
and a.mat_name like '%' + #{mat_name} + '%'
@@ -44,7 +44,7 @@
and a.unit like '%' + #{unit} + '%'
</if>
<if test="startTime!=null and endTime!=null">
- and a.modi_time between #{startTime} and #{endTime}
+ and appe_time between #{startTime} and #{endTime}
</if>
</sql>
@@ -52,7 +52,7 @@
select * from
(
select *,
- ROW_NUMBER() over (order by appe_time) as row
+ ROW_NUMBER() over (order by appe_time desc) as row
from (
select distinct bill_no, bill_type, appe_time
from ints_wait_matin
@@ -66,7 +66,7 @@
select count(1) from
(
select *,
- ROW_NUMBER() over (order by appe_time) as row
+ ROW_NUMBER() over (order by appe_time desc) as row
from (
select distinct bill_no, bill_type, appe_time
from ints_wait_matin
@@ -75,5 +75,11 @@
) r
) t
</select>
+ <select id="selectWaitMatinBySts" resultMap="BaseResultMap">
+ select * from ints_wait_matin
+ where io_status=2
+ or (in_qty=qty)
+ order by modi_time,mat_no asc
+ </select>
</mapper>
--
Gitblit v1.9.1