| | |
| | | <result column="wrk_sts" property="wrkSts" /> |
| | | <result column="io_type" property="ioType" /> |
| | | <result column="io_pri" property="ioPri" /> |
| | | <result column="wrk_date" property="wrkDate" /> |
| | | <result column="loc_no" property="locNo" /> |
| | | <result column="sta_no" property="staNo" /> |
| | | <result column="source_sta_no" property="sourceStaNo" /> |
| | |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="shuttle_no" property="shuttleNo" /> |
| | | <result column="lift_no" property="liftNo" /> |
| | | <result column="wms_wrk_no" property="wmsWrkNo" /> |
| | | <result column="system_msg" property="systemMsg" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="selectByWorkNo" resultMap="BaseResultMap"> |
| | | select * from dbo.asr_wrk_mast |
| | | select * from asr_wrk_mast |
| | | where wrk_no=#{workNo} |
| | | limit 0,1 |
| | | </select> |
| | |
| | | <select id="selectLiftWrkMast" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast |
| | | where lift_no = #{liftNo} |
| | | and wrk_sts in (3,4,104,105,302,303,304,305,306,307,308,309) |
| | | and wrk_sts in (3,4,104,105,301,302,303,304,305,306,307,308,309) |
| | | limit 0,1 |
| | | </select> |
| | | |
| | |
| | | <select id="selectShuttleMoveWrk" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast |
| | | where 1=1 |
| | | and wrk_sts in (301,302,303,304,305,306,307,308,309,310,311) |
| | | -- and wrk_sts in (301,302,303,304,305,306,307,308,309,310,311) |
| | | and io_type = 200 |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | |
| | | where 1=1 |
| | | and shuttle_no = #{shuttleNo} |
| | | and wrk_sts not in (9,10,109,110,210) |
| | | and io_type not in (200) |
| | | and io_type not in (200,300) |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | limit 0,1 |
| | | </select> |
| | |
| | | |
| | | <select id="selectChargeWorking" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast |
| | | where wrk_sts in (201,202,203) |
| | | where io_type in (300) |
| | | and shuttle_no = #{shuttleNo} |
| | | order by priority desc,start_time,wrk_no asc |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | |
| | | <select id="selectChargeWorkingByChargeSta" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast |
| | | where wrk_sts in (201,202,203,204,205,210) |
| | | and mk = #{chargeSta} |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | |
| | | </mapper> |