自动化立体仓库 - WMS系统
dubin
2025-12-19 b00eeab31bd13ba34a03301aa441b0751d6a93e4
src/main/resources/mapper/LocMastMapper.xml
@@ -186,10 +186,13 @@
            and row1 in(1,2,3)
        </if>
        <if test="crnNo == 2">
            and row1 in(5,6)
            and row1 in(4,5)
        </if>
        <if test="crnNo == 3">
            and row1 in(6,7)
        </if>
        <if test="crnNo == 4">
            and row1 in(8,9)
        </if>
        ORDER BY lev1 ASC, bay1 ASC
    </select>
@@ -217,4 +220,11 @@
        </if>
        ORDER BY lev1 ASC, bay1 ASC
    </select>
    <select id="selectByBarcode" resultMap="BaseResultMap">
        SELECT * FROM asr_loc_mast where 1=1 and barcode = #{barcode}
    </select>
    <select id="selectOneByCrnNo" resultMap="BaseResultMap">
        SELECT * FROM asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo} order by lev1,bay1
    </select>
</mapper>