自动化立体仓库 - WMS系统
#1
dubin
2025-11-04 57e7846403cd3c72cc70e17e205c4e0d8b3aa404
src/main/resources/mapper/LocMastMapper.xml
@@ -120,4 +120,30 @@
        SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE barcode = #{zpallet}
    </select>
    <select id="queryLocToOne" resultMap="BaseResultMap">
        select top 1 loc_no as locNo,crn_no as crnNo from asr_loc_mast
        where loc_status = 'O' and row1 in (1,2)
        <if test="locType2 == 4">
            and lev1 = 1
        </if>
        <if test="locType2 == 5">
            and lev1 in(2,3)
        </if>
        <if test="locType2 == 6">
            and lev1 in(4,5)
        </if>
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryLocToTwo" resultMap="BaseResultMap">
        select top 1 loc_no as locNo,crn_no as crnNo from asr_loc_mast
        where loc_status = 'O' and row1 in (3,4)
        <if test="locType2 == 7">
            and lev1 in(1,2)
        </if>
        <if test="locType2 == 8">
            and lev1 in(3,4,5,6)
        </if>
        order by lev1 asc,bay1 asc
    </select>
</mapper>