自动化立体仓库 - WMS系统
zhangchao
2024-09-03 648d00ba15235bf349f54a7c4893abf73dabf2de
找库位bug
2个文件已修改
16 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/OutController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/OutController.java
@@ -91,7 +91,7 @@
            }
            List<LocDetl> locDetls;
            if (Cools.isEmpty(orderDetls.get(0).getSPgNO())) {
                locDetls = locDetlService.queryStockByModel(orderDetl.getModel());
                locDetls = locDetlService.queryStock(orderDetl.getMatnr(), orderDetl.getBatch(), null, null);
            } else {
                locDetls = locDetlService.queryStock(orderDetl.getSPgNO());
            }
src/main/resources/mapper/LocDetlMapper.xml
@@ -248,9 +248,17 @@
        <if test="sPgNO != null and sPgNO != ''">
            and a.pg_no = #{sPgNO}
        </if>
        <if test="batch != null and batch != ''">
            and a.batch = #{batch}
        </if>
<!--        <if test="batch != null and batch != ''">-->
<!--            and a.batch = #{batch}-->
<!--        </if>-->
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
<!--        <if test="orderNo != null and orderNo != ''">-->
<!--            and a.order_no = #{orderNo}-->
<!--        </if>-->