自动化立体仓库 - WMS系统
123
zhangchao
2024-09-03 4f259a6f210021c49116e1202f6d2b67cb500bf4
123
1个文件已修改
23 ■■■■■ 已修改文件
src/main/resources/mapper/LocDetlMapper.xml 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml
@@ -245,20 +245,25 @@
<!--            </otherwise>-->
<!--        </choose>-->
        <if test="sPgNO != null and sPgNO != ''">
            and a.pg_no = #{sPgNO}
        </if>
<!--        <if test="batch != null and batch != ''">-->
<!--            and a.batch = #{batch}-->
<!--        </if>-->
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            <when test="sPgNO != null and sPgNO != ''">
                and a.pg_no = #{sPgNO}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
                and (sPgNO IS NULL OR sPgNO = '')
            </otherwise>
        </choose>
                <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>-->