From 539d9ffc477d28a23a923b41fdeabc8c37c99ce6 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 23 九月 2024 14:43:31 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/ViewInOutMapper.xml |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/ViewInOutMapper.xml b/src/main/resources/mapper/ViewInOutMapper.xml
index b3a938c..7c931ee 100644
--- a/src/main/resources/mapper/ViewInOutMapper.xml
+++ b/src/main/resources/mapper/ViewInOutMapper.xml
@@ -24,7 +24,7 @@
 <select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean">
 select * from ( 
 select *,ROW_NUMBER() OVER(Order by ymd desc) as rowid
- from asr_sta_inout_view
+ from man_loc_InOut_view
 <where>
 	1=1
  	<include refid="viewInOutConditionSql"></include>
@@ -39,7 +39,7 @@
 </select>
 
 <select id="getViewInOutCount" parameterType="com.zy.asrs.entity.ViewInOutBean"	resultType="Integer">
-select count(1) from asr_sta_inout_view a
+select count(1) from man_loc_InOut_view a
 <where>
 <![CDATA[
 	1=1
@@ -61,5 +61,23 @@
 	]]>
 </where>
 </select>
+    <select id="selectWorkCountInSum" resultType="java.lang.Integer">
+		SELECT SUM(anfme) FROM asr_wrkin_count_view WHERE 1=1 AND
+		(oneday > #{start}
+		AND
+		oneday &lt; #{end})
+		<if test="matnr != null and matnr !=''">
+			and matnr = #{matnr}
+		</if>
+	</select>
+	<select id="selectWorkCountOutSum" resultType="java.lang.Integer">
+		SELECT SUM(anfme) FROM asr_wrkout_count_view WHERE 1=1 AND
+		(oneday > #{start}
+		AND
+		oneday &lt; #{end})
+		<if test="matnr != null and matnr !=''">
+			and matnr = #{matnr}
+		</if>
+	</select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1