自动化立体仓库 - WMS系统
#
Junjie
8 天以前 d74e41701d48afe3e36dbec7f242765fc47096ea
src/main/resources/mapper/LocMastMapper.xml
@@ -33,12 +33,23 @@
        <result column="inv_wh" property="invWh" />
        <result column="mk" property="mk" />
        <result column="barcode" property="barcode" />
        <result column="Pdc_type" property="PdcType" />
        <result column="ctn_no" property="ctnNo" />
    </resultMap>
    <select id="queryFreeLocMast" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where row1=#{row} and loc_sts='O' order by loc_sts desc ,lev1 asc,bay1 asc
    <select id="getLevList" resultType="integer">
        select DISTINCT lev1 from asr_loc_mast
    </select>
    <select id="selectLoc" resultMap="BaseResultMap">
        select * from asr_loc_mast where 1 = 1
        AND loc_sts = 'O'
        AND row1 IN
        <if test="rows != null">
            <foreach collection="rows" item="row" open="(" separator="," close=")">
                #{row}
            </foreach>
        </if>
        order by bay1 asc, lev1 asc
    </select>
</mapper>