From 5a245bb923395c83f471e8c296814709f8be167a Mon Sep 17 00:00:00 2001
From: Administrator <1051256694@qq.com>
Date: 星期一, 20 四月 2026 22:02:59 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/ViewInOutMapper.xml |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/ViewInOutMapper.xml b/src/main/resources/mapper/ViewInOutMapper.xml
index 8152776..fd7fdd3 100644
--- a/src/main/resources/mapper/ViewInOutMapper.xml
+++ b/src/main/resources/mapper/ViewInOutMapper.xml
@@ -80,4 +80,39 @@
 		</if>
 	</select>
 
+	<select id="selectlocChartPieArea" resultType="com.zy.asrs.entity.LocChartPie">
+		SELECT   SUM(fqty) AS fqty, SUM(oqty) AS oqty, SUM(uqty) AS uqty, SUM(xqty) AS xqty
+		FROM      (SELECT   COUNT(*) AS fqty, 0 AS oqty, 0 AS uqty, 0 AS xqty
+		FROM      dbo.asr_loc_mast
+		WHERE ((loc_sts = 'F') OR (loc_sts = 'D'))
+		<if test="startRow != null and endRow != null">
+			AND row1 &gt; #{startRow} AND row1 &lt; #{endRow}
+		</if>
+		UNION ALL
+		SELECT   0 AS Expr1, COUNT(*) AS Expr2, 0 AS Expr3, 0 AS Expr4
+		FROM      dbo.asr_loc_mast AS asr_loc_mast_3
+		WHERE   (loc_sts = 'O')
+		<if test="startRow != null and endRow != null">
+			AND row1 &gt; #{startRow} AND row1 &lt; #{endRow}
+		</if>
+		UNION ALL
+		SELECT   0 AS Expr1, 0 AS Expr2, COUNT(*) AS Expr3, 0 AS Expr4
+		FROM      dbo.asr_loc_mast AS asr_loc_mast_2
+		WHERE ((loc_sts = 'P') OR
+		(loc_sts = 'Q') OR
+		(loc_sts = 'R') OR
+		(loc_sts = 'S'))
+		<if test="startRow != null and endRow != null">
+			AND row1 &gt; #{startRow} AND row1 &lt; #{endRow}
+		</if>
+		UNION ALL
+		SELECT   0 AS Expr1, 0 AS Expr2, 0 AS Expr3, COUNT(*) AS Expr4
+		FROM      dbo.asr_loc_mast AS asr_loc_mast_1
+		WHERE  (loc_sts = 'X')
+		<if test="startRow != null and endRow != null">
+			AND row1 &gt; #{startRow} AND row1 &lt; #{endRow}
+		</if>
+		) AS a
+	</select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1