#
Junjie
2025-04-10 1d624dfdb040825ffecba6c792c480be662b2dbc
src/main/resources/mapper/WrkMastMapper.xml
@@ -9,7 +9,6 @@
        <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" />
@@ -25,6 +24,8 @@
        <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>
@@ -46,7 +47,7 @@
    </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>
@@ -96,7 +97,7 @@
    <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>
@@ -129,7 +130,7 @@
    <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>
@@ -139,7 +140,7 @@
        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>
@@ -163,9 +164,16 @@
    <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>