自动化立体仓库 - WMS系统
#
luxiaotao1123
2021-08-27 bbdb6ba172824a42583d90ab6128dca54372e566
src/main/resources/mapper/WaitMatinMapper.xml
@@ -28,8 +28,8 @@
    </resultMap>
    <sql id="condition">
        <if test="loc_no!=null and loc_no!='' ">
            and a.loc_no like '%' + #{loc_no} + '%'
        <if test="bill_no!=null and bill_no!='' ">
            and bill_no like '%' + #{bill_no} + '%'
        </if>
        <if test="mat_no!=null and mat_no!='' ">
            and a.mat_no like '%' + #{mat_no} + '%'
@@ -56,6 +56,7 @@
            from (
                select distinct bill_no, bill_type, appe_time
                from ints_wait_matin
                where 1=1
                <include refid="condition"></include>
            ) r
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
@@ -69,6 +70,7 @@
            from (
                select distinct bill_no, bill_type, appe_time
                from ints_wait_matin
                where 1=1
                <include refid="condition"></include>
            ) r
        ) t