From dfc4f109affb68e8a2e5255e13ecb2ba013525c2 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 01 四月 2026 16:44:30 +0800
Subject: [PATCH] #入库任务优化
---
src/main/resources/mapper/WrkMastMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 8af8efe..0ea293f 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -27,6 +27,7 @@
<result column="rgv_no" property="rgvNo" />
<result column="wms_wrk_no" property="wmsWrkNo" />
<result column="system_msg" property="systemMsg" />
+ <result column="send_fail_count" property="sendFailCount" />
<result column="batch" property="batch" />
<result column="batch_seq" property="batchSeq" />
@@ -38,4 +39,24 @@
limit 0,1
</select>
+ <select id="selectCrnTaskCountList" resultType="com.zy.asrs.domain.vo.WrkTaskCountVo">
+ select
+ crn_no as deviceNo,
+ count(1) as totalCount,
+ sum(case when io_type = #{inIoType} then 1 else 0 end) as inCount
+ from asr_wrk_mast
+ where crn_no is not null
+ group by crn_no
+ </select>
+
+ <select id="selectDualCrnTaskCountList" resultType="com.zy.asrs.domain.vo.WrkTaskCountVo">
+ select
+ dual_crn_no as deviceNo,
+ count(1) as totalCount,
+ sum(case when io_type = #{inIoType} then 1 else 0 end) as inCount
+ from asr_wrk_mast
+ where dual_crn_no is not null
+ group by dual_crn_no
+ </select>
+
</mapper>
--
Gitblit v1.9.1