| | |
| | | <result column="io_type" property="ioType" /> |
| | | <result column="crn_no" property="crnNo" /> |
| | | <result column="ste_no" property="steNo" /> |
| | | <result column="charge" property="charge" /> |
| | | <result column="out_most" property="outMost" /> |
| | | <result column="io_pri" property="ioPri" /> |
| | | <result column="loc_no" property="locNo" /> |
| | |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="shuttle_no" property="shuttleNo" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="selectWorking" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from asr_wrk_charge |
| | | where 1=1 |
| | | <if test="shuttleNo != null"> |
| | | and shuttle_no = #{shuttleNo} |
| | | </if> |
| | | and wrk_sts < 60 |
| | | and memo = 'charge' |
| | | order by appe_time, io_pri desc |
| | | </select> |
| | | |
| | | <select id="selectWorkingOfCharge" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from asr_wrk_charge |
| | | where 1=1 |
| | | <if test="charge != null"> |
| | | and charge = #{charge} |
| | | </if> |
| | | and wrk_sts < 60 |
| | | and memo = 'charge' |
| | | order by appe_time, io_pri desc |
| | | </select> |
| | | |
| | | <select id="selectWorkingOfReset" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from asr_wrk_charge |
| | | where 1=1 |
| | | <if test="steNo != null"> |
| | | and ste_no = #{steNo} |
| | | </if> |
| | | and wrk_sts < 47 |
| | | and memo = 'reset' |
| | | order by appe_time, io_pri desc |
| | | </select> |
| | | |
| | | <select id="selectByWorkNo" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_charge |
| | | where wrk_no=#{workNo} |
| | | order by appe_time, io_pri desc |
| | | </select> |
| | | |
| | | </mapper> |