自动化立体仓库 - WMS系统
#
mrzhssss
2022-10-27 d941e5d091243af46052a2bb46f705b46a92d914
src/main/resources/mapper/LocDetlMapper.xml
@@ -102,6 +102,22 @@
        </if>
    </sql>
    <sql id="groupListCondition">
        <if test="matnr!=null and matnr!='' ">
            and matnr like '%' + #{matnr} + '%'
        </if>
        <if test="maktx!=null and maktx!='' ">
            and maktx like '%' + #{maktx} + '%'
        </if>
        <if test="specs!=null and specs!='' ">
            and specs like '%' + #{specs} + '%'
        </if>
        <if test="batch!=null and batch!='' ">
            and batch like '%' + #{batch} + '%'
        </if>
    </sql>
    <select id="getStockOutPage" resultMap="BaseResultMap">
        select * from
        (
@@ -390,5 +406,10 @@
    <select id="selectSumByMatnr" resultType="java.lang.Double">
        select sum(anfme) FROM asr_loc_detl WHERE matnr = #{matnr}
    </select>
    <select id="selectGroupPage" resultMap="BaseResultMap" parameterType="java.util.Map">
        SELECT  *  FROM [dbo].[asr_loc_detl_group] WHERE 1 = 1
        <include refid="groupListCondition"></include>
    </select>
</mapper>