自动化立体仓库 - WMS系统
zjj
2025-02-17 8aa26cdd7fd9c4ed2d9fc56be0f9c9c05f531b18
src/main/resources/mapper/BasDevpMapper.xml
@@ -29,6 +29,9 @@
        <result column="area" property="area" />
        <result column="in_ok" property="inOk" />
        <result column="out_ok" property="outOk" />
        <result column="loc_type1" property="locType1" />
        <result column="loc_type2" property="locType2" />
        <result column="loc_type3" property="locType3" />
        <result column="modi_user" property="modiUser" />
        <result column="modi_time" property="modiTime" />
        <result column="appe_user" property="appeUser" />
@@ -48,7 +51,7 @@
        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>
@@ -59,7 +62,41 @@
        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="getCrnAvailableOutSite" resultType="java.lang.Integer">
        select
            abd.dev_no
        from asr_bas_devp abd
                 left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        where 1=1
          and asd.type_no = #{typeNo}
        and asd.crn_no in (1,2)
        -- and abd.out_enable = 'Y'
        group by abd.dev_no
    </select>
    <select id="getShuttleAvailableOutSite" resultType="java.lang.Integer">
        select
            abd.dev_no
        from asr_bas_devp abd
                 left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        where 1=1
          and asd.type_no = #{typeNo}
          and asd.crn_no in (7)
        -- and abd.out_enable = 'Y'
        group by abd.dev_no
    </select>
    <select id="getCtuAvailableOutSite" resultType="java.lang.Integer">
        select
            abd.dev_no
        from asr_bas_devp abd
                 left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        where 1=1
          and asd.type_no = #{typeNo}
          and asd.crn_no in (8,9)
        -- and abd.out_enable = 'Y'
        group by abd.dev_no
    </select>