自动化立体仓库 - WMS系统
Junjie
2023-05-24 64126dfd00ed90af484fbf7b173e00fcebc4f9fa
src/main/resources/mapper/LocDetlMapper.xml
@@ -78,6 +78,8 @@
        update asr_loc_detl
        set anfme = #{anfme}
        , modi_time = getdate()
        , manu = #{manu}
        , memo = #{memo}
        where 1=1
        and loc_no = #{locNo}
        and matnr = #{matnr}
@@ -102,6 +104,9 @@
        </if>
        <if test="zpallet!=null and zpallet!='' ">
            and a.zpallet like '%' + #{zpallet} + '%'
        </if>
        <if test="manu!=null and manu!='' ">
            and a.manu like '%' + #{manu} + '%'
        </if>
        <if test="startTime!=null and endTime!=null">
            and a.modi_time between #{startTime} and #{endTime}
@@ -246,6 +251,14 @@
            and b.loc_sts = 'F' and b.frozen != 1
            and a.manu is null
            and a.matnr = #{matnr}
            <choose>
                <when test="batch != null and batch != ''">
                    and a.batch = #{batch}
                </when>
                <otherwise>
                    and (a.batch IS NULL OR a.batch = '')
                </otherwise>
            </choose>
            and b.row1 >= 1
            and b.row1 &lt;= 3
            group by b.bay1
@@ -261,6 +274,14 @@
            and b.loc_sts = 'F' and b.frozen != 1
            and a.manu is null
            and a.matnr = #{matnr}
            <choose>
                <when test="batch != null and batch != ''">
                    and a.batch = #{batch}
                </when>
                <otherwise>
                    and (a.batch IS NULL OR a.batch = '')
                </otherwise>
            </choose>
            and b.row1 >= 4
            and b.row1 &lt;= 7
            group by b.bay1
@@ -276,6 +297,14 @@
            and b.loc_sts = 'F' and b.frozen != 1
            and a.manu is null
            and a.matnr = #{matnr}
            <choose>
                <when test="batch != null and batch != ''">
                    and a.batch = #{batch}
                </when>
                <otherwise>
                    and (a.batch IS NULL OR a.batch = '')
                </otherwise>
            </choose>
            and b.row1 >= 8
            and b.row1 &lt;= 11
            group by b.bay1
@@ -291,6 +320,14 @@
            and b.loc_sts = 'F' and b.frozen != 1
            and a.manu is null
            and a.matnr = #{matnr}
            <choose>
                <when test="batch != null and batch != ''">
                    and a.batch = #{batch}
                </when>
                <otherwise>
                    and (a.batch IS NULL OR a.batch = '')
                </otherwise>
            </choose>
            and b.row1 >= 12
            and b.row1 &lt;= 14
            group by b.bay1
@@ -306,6 +343,14 @@
            and b.loc_sts = 'F' and b.frozen != 1
            and a.manu is null
            and a.matnr = #{matnr}
            <choose>
                <when test="batch != null and batch != ''">
                    and a.batch = #{batch}
                </when>
                <otherwise>
                    and (a.batch IS NULL OR a.batch = '')
                </otherwise>
            </choose>
            and b.row1 >= 15
            and b.row1 &lt;= 18
            group by b.bay1
@@ -321,6 +366,14 @@
            and b.loc_sts = 'F' and b.frozen != 1
            and a.manu is null
            and a.matnr = #{matnr}
            <choose>
                <when test="batch != null and batch != ''">
                    and a.batch = #{batch}
                </when>
                <otherwise>
                    and (a.batch IS NULL OR a.batch = '')
                </otherwise>
            </choose>
            and b.row1 >= 19
            and b.row1 &lt;= 21
            group by b.bay1
@@ -381,6 +434,14 @@
            </if>
        )
        and a.matnr = #{matnr}
        <choose>
            <when test="batch != null and batch != ''">
                and a.batch = #{batch}
            </when>
            <otherwise>
                and (a.batch IS NULL OR a.batch = '')
            </otherwise>
        </choose>
        and b.bay1 = #{bay}
        and b.loc_sts = 'F' and b.frozen != 1
        order by b.row1