From bcb19e8c93c3cabf0d8eb3ee34ed819b3c5a10ef Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 25 十一月 2024 13:14:11 +0800
Subject: [PATCH] #优化地图

---
 src/main/resources/mapper/ViewStockUseMapper.xml |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/ViewStockUseMapper.xml b/src/main/resources/mapper/ViewStockUseMapper.xml
index 1bd682c..148e133 100644
--- a/src/main/resources/mapper/ViewStockUseMapper.xml
+++ b/src/main/resources/mapper/ViewStockUseMapper.xml
@@ -152,7 +152,10 @@
 			 </if>
 
 			) a ) b
-	WHERE 1=1 and b.row between ((#{curr}-1)*#{limit}+1) and (#{curr}*#{limit})
+	WHERE 1=1
+	<if test="curr != null and curr !=''">
+		and b.row between ((#{curr}-1)*#{limit}+1) and (#{curr}*#{limit})
+	</if>
 
 </select>
 <select id="selectWorkCountInTotal" resultType="java.lang.Integer">
@@ -183,7 +186,10 @@
 		and matnr = #{matnr}
 	</if>
 	) a ) b
-	WHERE 1=1 and b.row between ((#{curr}-1)*#{limit}+1) and (#{curr}*#{limit})
+	WHERE 1=1
+	<if test="curr != null and curr !=''">
+		and b.row between ((#{curr}-1)*#{limit}+1) and (#{curr}*#{limit})
+	</if>
 </select>
 <select id="selectWorkCountOutTotal" resultType="java.lang.Integer">
 	SELECT COUNT(*) FROM asr_wrkout_count_view

--
Gitblit v1.9.1