自动化立体仓库 - WMS系统
#
Junjie
2023-12-20 ca42a5047cb15ae63035f15a971a8e1ec858851f
src/main/resources/mapper/ManLocDetlMapper.xml
@@ -45,7 +45,7 @@
            and mld.loc_no like concat('%',#{loc_no},'%')
        </if>
        <if test="locNo != null and locNo != ''">
            and mld.loc_no like concat('%',#{loc_no},'%')
            and mld.loc_no like concat('%',#{locNo},'%')
        </if>
        <if test="matnr != null and matnr != ''">
            and mld.matnr like concat('%',#{matnr},'%')
@@ -256,17 +256,41 @@
        select top 1 * from man_loc_detl
        where loc_no = #{locNo}
        and matnr = #{matnr}
        <if test="batch!=null and batch!='' ">
            and 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="batch!=null and batch!='' ">-->
<!--            and batch = #{batch}-->
<!--        </if>-->
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
        <choose>
            <when test="csocode != null and csocode != ''">
                and csocode = #{csocode}
            </when>
            <otherwise>
                and (csocode IS NULL OR csocode = '')
            </otherwise>
        </choose>
        <choose>
            <when test="isoseq != null and isoseq != ''">
                and isoseq = #{isoseq}
            </when>
            <otherwise>
                and (isoseq IS NULL OR isoseq = '')
            </otherwise>
        </choose>
        <choose>
            <when test="containerCode != null and containerCode != ''">
                and container_code = #{containerCode}
            </when>
            <otherwise>
                and (container_code IS NULL OR container_code = '')
            </otherwise>
        </choose>
    </select>
    <select id="listByOutPage" resultMap="BaseResultMap">