自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-08-16 040c966720e66bfa400181bb26d46ca59ac44e6c
src/main/resources/mapper/LocMastMapper.xml
@@ -42,17 +42,10 @@
        select top 1 *
        from asr_loc_mast
        where
        row1 =
        (
        case
        when #{row}=3 then 1
        when #{row}=4 then 7
        when #{row}=11 then 8
        when #{row}=12 then 14
        when #{row}=18 then 15
        when #{row}=19 then 21
        end
        )
        row1 in
        <foreach item="item" collection="rows" index="index"  separator="," open="(" close=")">
            #{item}
        </foreach>
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
@@ -63,7 +56,7 @@
            and loc_type3 = #{locType3}
        </if>
        and loc_sts='O'
        order by loc_sts desc ,lev1 asc,bay1 asc
        order by loc_sts desc,row1 asc, lev1 asc, bay1 asc
    </select>
</mapper>