自动化立体仓库 - WMS系统
#
tzsk
2024-04-11 10ade08bd530b7ee6b5dd83194c8f48d19b327ef
src/main/resources/mapper/LocMastMapper.xml
@@ -119,7 +119,18 @@
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        ORDER BY lev1,bay1,row1
        ORDER BY row1,bay1,lev1
    </select>
    <select id="selectAreaEmptyByLev" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where loc_sts in ('O')
        and loc_type3 = #{locType3}
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        and lev1 = #{lev}
        ORDER BY row1,bay1,lev1
    </select>
    <select id="selectEmptyByLocNos" resultMap="BaseResultMap">
@@ -144,4 +155,19 @@
        and (bay1 &gt;= #{startBay} and bay1 &lt;= #{endBay})
        and (lev1 &gt;= #{startLev} and lev1 &lt;= #{endLev})
    </select>
    <select id="selectLocDetlNotExist" resultMap="BaseResultMap">
        select * from asr_loc_mast lm
        left join asr_loc_detl ld
        on lm.loc_no = ld.loc_no
        where ld.matnr is null and lm.loc_sts = 'F'
    </select>
    <delete id="clearLiftLocNo">
        update asr_loc_mast set loc_sts = 'S'
        where row1 >=1 and row1 &lt;= 16
        and bay1 in(21,22,23,37,38,39,56,57,58)
        and lev1 >= 1 and lev1 &lt;= 10
        and loc_sts = 'O'
    </delete>
</mapper>