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