自动化立体仓库 - WMS系统
#
LSH
2023-05-24 26aefb078007bf1fbf58cdecaefcb14e63a970c0
src/main/resources/mapper/LocDetlMapper.xml
@@ -44,6 +44,9 @@
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="memo" property="memo" />
        <result column="owner" property="owner" />
        <result column="payment" property="payment" />
        <result column="uuid" property="uuid" />
    </resultMap>
    <sql id="batchSeq">
@@ -115,6 +118,22 @@
            left join asr_loc_mast b on a.loc_no = b.loc_no
            where 1=1
            and b.loc_sts = 'F'
            <choose>
                <when test="owner != null and owner != 0">
                    and owner = #{owner}
                </when>
                <otherwise>
                    and 1!=1
                </otherwise>
            </choose>
            <choose>
                <when test="payment != null and payment != 0">
                    and payment = #{payment}
                </when>
                <otherwise>
                    and 1!=1
                </otherwise>
            </choose>
            <include refid="stockOutCondition"></include>
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
@@ -126,6 +145,22 @@
        left join asr_loc_mast b on a.loc_no = b.loc_no
        where 1=1
        and b.loc_sts = 'F'
        <choose>
            <when test="owner != null and owner != 0">
                and owner = #{owner}
            </when>
            <otherwise>
                and 1!=1
            </otherwise>
        </choose>
        <choose>
            <when test="payment != null and payment != 0">
                and payment = #{payment}
            </when>
            <otherwise>
                and 1!=1
            </otherwise>
        </choose>
        <include refid="stockOutCondition"></include>
    </select>