| | |
| | | <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" /> |
| | | |
| | |
| | | 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> |