自动化立体仓库 - WMS系统
zc
2024-09-03 7eeac1431a999774a0bcf77c8cddf3032fdeaad8
Merge remote-tracking branch 'origin/xgmFlasrs' into xgmFlasrs
1个文件已修改
49 ■■■■■ 已修改文件
src/main/resources/mapper/LocDetlMapper.xml 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml
@@ -236,40 +236,45 @@
        where 1=1
        and b.loc_sts = 'F'
<!--        <choose>-->
<!--            <when test="batch != null and batch != ''">-->
<!--                and a.batch = #{batch}-->
<!--            </when>-->
<!--            <otherwise>-->
<!--                and (a.batch IS NULL OR a.batch = '')-->
<!--            </otherwise>-->
<!--        </choose>-->
        <!--        <choose>-->
        <!--            <when test="batch != null and batch != ''">-->
        <!--                and a.batch = #{batch}-->
        <!--            </when>-->
        <!--            <otherwise>-->
        <!--                and (a.batch IS NULL OR a.batch = '')-->
        <!--            </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="orderNo != null and orderNo != ''">-->
<!--            and a.order_no = #{orderNo}-->
<!--        </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>-->
        <if test="model != null and model != ''">
            and a.model = #{model}
          and (a.pg_no is null or LEN(LTRIM(RTRIM(pg_no))) = 0)
            and (a.pg_no is null or LEN(LTRIM(RTRIM(pg_no))) = 0)
        </if>
        <if test="locNos != null and locNos.size > 0">
            and b.loc_no not in
            <foreach item="item" collection="locNos" index="index"  separator="," open="(" close=")">
            <foreach item="item" collection="locNos" index="index" separator="," open="(" close=")">
                #{item}
            </foreach>
        </if>