|  |  | 
 |  |  |         <result column="max_wt" property="maxWt" /> | 
 |  |  |         <result column="gross_wt" property="grossWt" /> | 
 |  |  |         <result column="cart_pos" property="cartPos" /> | 
 |  |  |         <result column="report_sign" property="reportSign" /> | 
 |  |  |         <result column="empty_mk" property="emptyMk" /> | 
 |  |  |  | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  | 
 |  |  |         left join asr_sta_desc asd on abd.dev_no = asd.stn_no | 
 |  |  |         where 1=1 | 
 |  |  |         and asd.type_no = #{typeNo} | 
 |  |  |         and abd.in_enable = 'Y' | 
 |  |  |         -- and abd.in_enable = 'Y' | 
 |  |  |         group by abd.dev_no | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | 
 |  |  |         left join asr_sta_desc asd on abd.dev_no = asd.stn_no | 
 |  |  |         where 1=1 | 
 |  |  |         and asd.type_no = #{typeNo} | 
 |  |  |         and abd.out_enable = 'Y' | 
 |  |  |         -- and abd.out_enable = 'Y' | 
 |  |  |         group by abd.dev_no | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectWaitNecessary" resultType="java.lang.Integer"> | 
 |  |  |         select count(1) | 
 |  |  |         from asr_bas_devp | 
 |  |  |         where 1=1 | 
 |  |  |         and dev_no in | 
 |  |  |             <foreach item="item" collection="devNos" index="index" separator="," open="(" close=")"> | 
 |  |  |                 #{item} | 
 |  |  |             </foreach> | 
 |  |  |         and wrk_no is not null and wrk_no!=0 and wrk_no != #{wrkNo} | 
 |  |  |  | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | </mapper> |