#
TQS
2023-10-25 7ddcebfb15b4448176f0374858911be72249749a
#
2个文件已修改
10 ■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkMastMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -1297,7 +1297,7 @@
                    Integer sour = wrkMast.getSourceStaNo();
                    List<WrkMast> wrkMasts = wrkMastMapper.selectWrkStsAndIoType0(sour);
                    if (wrkMasts.size() > 0){
                        News.error("MainServiceImpl  1028行"+"存在捡料、盘点未入库货物,2号堆垛机暂时禁止出库!!!");
                        News.error("MainServiceImpl  1300行"+"存在捡料、盘点未入库货物,2号堆垛机暂时禁止出库!!!");
                        return false;
                    }
@@ -1306,7 +1306,7 @@
                            .eq("sta_no",300)
                            .last(" and wrk_sts>11 and io_type in (103,107) "));
                    if(!Cools.isEmpty(one)){
                        News.error("MainServiceImpl  1099行"+"存在捡料、盘点未入库货物,2号堆垛机暂时禁止出库!!!");
                        News.error("MainServiceImpl  1309行"+"存在捡料、盘点未入库货物,2号堆垛机暂时禁止出库!!!");
                        continue;
                    }
                }
src/main/resources/mapper/WrkMastMapper.xml
@@ -223,18 +223,22 @@
    <select id="selectWrkStsAndIoType107Count" resultType="java.lang.Integer">
        select count (*) from dbo.asr_wrk_mast where 1=1
        and work_no!=#{workNo}
        and wrk_no!=#{workNo}
        and
        (
        <choose>
            <when test="sour &lt; 200">
                (wrk_sts > 11 and wrk_sts &lt; 18 and source_sta_no &lt; 200 and io_type > 101 and io_type &lt; 110)
                or
                (wrk_sts = 11 and source_sta_no &lt; 200 and io_type > 101 and io_type &lt; 110 and ste_no is not null)
                or
                (wrk_sts &lt; 3 and sta_no &lt; 200 and io_type &lt; 100 and io_type > 9 and io_type != 11 )
            </when>
            <otherwise>
                (wrk_sts > 11 and wrk_sts &lt; 18 and source_sta_no > 200 and io_type > 101 and io_type &lt; 110)
                or
                (wrk_sts = 11 and source_sta_no > 200 and io_type > 101 and io_type &lt; 110 and ste_no is not null)
                or
                (wrk_sts &lt; 3 and sta_no > 200 and io_type &lt; 100 and io_type > 9 and io_type != 11)
            </otherwise>
        </choose>