自动化立体仓库 - WMS系统
#
Administrator
2023-06-30 59183282a7cfdb6bd0976697681c851baf696265
#
2个文件已修改
10 ■■■■ 已修改文件
src/main/java/com/zy/common/service/CommonService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocMastMapper.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java
@@ -444,6 +444,8 @@
            if (VersionUtils.locMoveCheckLocType(locMast0, locTypeDto)) {
                // 浅库位对应堆垛机必须可用且无异常
                if (basCrnpService.checkSiteError(locMast0.getCrnNo(), true)) {
                    //判断是否需要移库
                    // 因库位移转、需预留空库位
                    if (locMastService.checkEmptyCount0(locMast0, 2)) {
                        locMast = locMast0;
src/main/resources/mapper/LocMastMapper.xml
@@ -326,7 +326,9 @@
    <select id="findEmptyLowFrequencyLocMast" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where loc_type2 = 3
        and loc_type1 = #{locType1}
        <if test="locType1 != 1">
            and loc_type1 = #{locType1}
        </if>
        and loc_sts = 'O'
        and crn_no = #{crnNo}
        order by bay1,lev1,row1
@@ -352,8 +354,8 @@
        </foreach>
    </select>
    <select id="selectEmptyLocCount0" resultMap="BaseResultMap">
        select count(*) as count from asr_loc_mast
    <select id="selectEmptyLocCount0" resultType="java.lang.Integer">
        select count(1) from asr_loc_mast
        where 1=1
        and loc_sts = 'O'
        and loc_type1 = #{locType1}