自动化立体仓库 - WMS系统
pang.jiabao
2024-06-22 8d6042713c2e2d9719c64322ef26450a9f221523
src/main/resources/mapper/LocMastMapper.xml
@@ -179,4 +179,22 @@
        )
        and loc_sts = 'D' and crn_no=1
    </select>
    <select id="queryEmptyLocNoByStaNo" resultType="com.zy.asrs.entity.LocMast">
        SELECT TOP 1 loc_no AS locNo,crn_no AS crnNo FROM asr_loc_mast
        where loc_sts = 'O'
        <if test="crnNo == 1">
            and row1 in(1,2)
        </if>
        <if test="crnNo == 2">
            and row1 in(5,6)
        </if>
        <if test="crnNo == 3">
            and row1 in(6,7)
        </if>
        ORDER BY lev1 ASC, bay1 ASC
    </select>
    <select id="queryLocByBarCode" resultType="com.zy.asrs.entity.LocMast">
        SELECT TOP 1 loc_no AS locNo,crn_no AS crnNo FROM asr_loc_mast
        where loc_sts = 'O' and row1 = #{row} ORDER BY lev1 ASC, bay1 ASC
    </select>
</mapper>