自动化立体仓库 - WMS系统
zjj
2025-02-17 8aa26cdd7fd9c4ed2d9fc56be0f9c9c05f531b18
src/main/resources/mapper/LocDetlMapper.xml
@@ -44,6 +44,10 @@
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="memo" property="memo" />
        <result column="temp1" property="temp1" />
        <result column="temp2" property="temp2" />
        <result column="temp3" property="temp3" />
        <result column="temp4" property="temp4" />
    </resultMap>
    <sql id="batchSeq">
@@ -217,6 +221,15 @@
<!--                and (a.batch IS NULL OR a.batch = '')-->
<!--            </otherwise>-->
<!--        </choose>-->
        <if test="supp != null and supp != ''">
            and a.supp = #{supp}
        </if>
        <if test="temp1 != null and temp1 != ''">
            and a.temp1 = #{temp1}
        </if>
        <if test="temp2 != null and temp2 != ''">
            and a.temp2 = #{temp2}
        </if>
        <if test="batch != null and batch != ''">
            and a.batch = #{batch}
        </if>
@@ -307,7 +320,7 @@
        where 1=1
        group by matnr,batch
    </select>
    <select id="sum" resultType="java.lang.Integer">
    <select id="sum" resultType="java.lang.Double">
        SELECT SUM(anfme) FROM asr_loc_detl
    </select>
    <select id="unreason" resultMap="BaseResultMap">
@@ -410,6 +423,15 @@
        and b.loc_sts = 'F'
        and a.matnr = #{matnr}
        and b.crn_no in (8,9)
        <if test="supp != null and supp != ''">
            and a.supp = #{supp}
        </if>
        <if test="temp1 != null and temp1 != ''">
            and a.temp1 = #{temp1}
        </if>
        <if test="temp2 != null and temp2 != ''">
            and a.temp2 = #{temp2}
        </if>
        <if test="batch != null and batch != ''">
            and a.batch = #{batch}
        </if>
@@ -499,6 +521,15 @@
        <!--                and (a.batch IS NULL OR a.batch = '')-->
        <!--            </otherwise>-->
        <!--        </choose>-->
        <if test="supp != null and supp != ''">
            and a.supp = #{supp}
        </if>
        <if test="temp1 != null and temp1 != ''">
            and a.temp1 = #{temp1}
        </if>
        <if test="temp2 != null and temp2 != ''">
            and a.temp2 = #{temp2}
        </if>
        <if test="batch != null and batch != ''">
            and a.batch = #{batch}
        </if>
@@ -587,6 +618,15 @@
        <!--                and (a.batch IS NULL OR a.batch = '')-->
        <!--            </otherwise>-->
        <!--        </choose>-->
        <if test="supp != null and supp != ''">
            and a.supp = #{supp}
        </if>
        <if test="temp1 != null and temp1 != ''">
            and a.temp1 = #{temp1}
        </if>
        <if test="temp2 != null and temp2 != ''">
            and a.temp2 = #{temp2}
        </if>
        <if test="batch != null and batch != ''">
            and a.batch = #{batch}
        </if>