#
LSH
2023-05-06 1bdb27f4508fd8a718e8f5a834b923667625f5bd
#
3个文件已修改
41 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/mapper/WrkMastMapper.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkMastMapper.xml 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
@@ -122,4 +122,7 @@
    WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectWorkingPakout(@Param("sourceStaNo")Integer sourceStaNo);
    WrkMast selectShallowLoc(@Param("row")Integer row,@Param("bay")Integer bay,@Param("lev")Integer lev);
}
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -856,6 +856,11 @@
                continue;
            }
            // 入库深库位是否有非F、D库位进行校验
            if (wrkMastMapper.selectShallowLoc(Integer.parseInt(wrkMast.getLocNo().substring(0, 2)),Integer.parseInt(wrkMast.getLocNo().substring(2, 5)),Integer.parseInt(wrkMast.getLocNo().substring(5, 7)))!=null){
                continue;
            }
            //加强判断,只要存在移库任务,说明出库任务未完全结束,不执行入库任务
            WrkMast one = wrkMastMapper.selectLocMoveData(slave.getId());
            if(!Cools.isEmpty(one)){
src/main/resources/mapper/WrkMastMapper.xml
@@ -242,4 +242,37 @@
        order by io_time,wrk_no
    </select>
    <select id="selectShallowLoc" resultMap="BaseResultMap">
        select top 1 *
        from dbo.asr_loc_mast
        where 1=1
        and loc_sts!='F' and loc_sts!='D'
        and bay1 = #{bay}
        and lev1 = #{lev}
        <if test="row &lt;= 3">
            and row1 &lt; #{row}
        </if>
        <if test="row > 3 and row &lt;= 7">
            and row1 > #{row}
            and row1 &lt;= 7
        </if>
        <if test="row > 7 and row &lt;= 11">
            and row1 > 7
            and row1 &lt; #{row}
        </if>
        <if test="row > 11 and row &lt;= 14">
            and row1 > #{row}
            and row1 &lt;= 14
        </if>
        <if test="row > 14 and row &lt;= 18">
            and row1 > 14
            and row1 &lt; #{row}
        </if>
        <if test="row > 18 and row &lt;= 21">
            and row1 > #{row}
            and row1 &lt;= 21
        </if>
        order by io_time,wrk_no
    </select>
</mapper>