From 6797af492e55d2e63a95ed8f6d86e274f85a09c3 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期一, 26 一月 2026 13:24:31 +0800
Subject: [PATCH] 6.8 查询所有库位状态和物料-二机床信息化数字孪生用
---
src/main/resources/mapper/ViewInOutMapper.xml | 33 ++++++++++++++++++++++++++++++++-
1 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/ViewInOutMapper.xml b/src/main/resources/mapper/ViewInOutMapper.xml
index b3a938c..64694b1 100644
--- a/src/main/resources/mapper/ViewInOutMapper.xml
+++ b/src/main/resources/mapper/ViewInOutMapper.xml
@@ -19,9 +19,22 @@
]]>
</if>
</sql>
+ <resultMap id="ViewInOutMap" type="com.zy.asrs.entity.ViewInOutBean">
+ <result column="ymd" property="ymd"/>
+ <result column="source_sta_no" property="source_sta_no"/>
+
+ <result column="sto_qty" property="sto_qty"/>
+ <result column="ret_qty" property="ret_qty"/>
+ <result column="total_qty" property="total_qty"/>
+
+ <!-- 鏌ヨ鏉′欢瀛楁锛堜竴鑸笉浠� SQL 杩斿洖锛屼篃鍐欎笂涓嶅奖鍝嶏級 -->
+ <result column="begin_date" property="begin_date"/>
+ <result column="end_date" property="end_date"/>
+
+ </resultMap>
<!-- 鍒嗛〉鏌ヨ鎵�鏈変俊鎭� -->
-<select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean">
+<select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultMap="ViewInOutMap">
select * from (
select *,ROW_NUMBER() OVER(Order by ymd desc) as rowid
from asr_sta_inout_view
@@ -61,5 +74,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 < #{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 < #{end})
+ <if test="matnr != null and matnr !=''">
+ and matnr = #{matnr}
+ </if>
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1