From f34da12c558d57d156529e23c04e2388e60b94e5 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 14 六月 2023 10:27:17 +0800
Subject: [PATCH] #组托逻辑
---
src/main/resources/mapper/LocDetlMapper.xml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 56 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 9dae5c9..b86e724 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -46,7 +46,7 @@
<result column="memo" property="memo" />
<result column="owner" property="owner" />
<result column="payment" property="payment" />
- <result column="uuid" property="uuid" />
+
</resultMap>
<sql id="batchSeq">
@@ -499,6 +499,61 @@
end
desc
</select>
+ <sql id="selectAllSql">
+ <if test="locNo!=null and locNo!='' ">
+ and t.loc_no like '%' + #{locNo} + '%'
+ </if>
+ <if test="matnr != null and matnr !='' ">
+ and t.matnr like '%' + #{matnr} + '%'
+ </if>
+ <if test="owner != null and owner !='' ">
+ and t.owner like '%' + #{owner} + '%'
+ </if>
+
+ </sql>
+ <select id="selectAllOwner" resultType="com.zy.asrs.entity.result.LocDetlAll" parameterType="com.zy.asrs.entity.result.LocDetlDTO">
+ SELECT * FROM (
+ SELECT ROW_NUMBER() over(order by matnr) as row,* FROM (
+ SELECT * FROM asr_loc_detl_all
+ ) t
+ WHERE 1=1
+ <include refid="selectAllSql"></include>
+ ) a
+ WHERE a.row BETWEEN ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
+ </select>
+ <select id="selectAllCount" resultType="java.lang.Integer" parameterType="com.zy.asrs.entity.result.LocDetlDTO">
+ SELECT count(*) FROM (
+ SELECT ROW_NUMBER() over(order by matnr) as row,* FROM (
+ SELECT * FROM asr_loc_detl_all
+ ) t
+ WHERE 1=1
+ <include refid="selectAllSql"></include>
+ ) a
+
+ </select>
+ <select id="selectAllPyment" resultType="com.zy.asrs.entity.result.LocDetlAll" parameterType="com.zy.asrs.entity.result.LocDetlDTO">
+ SELECT * FROM (
+ SELECT ROW_NUMBER() over(order by matnr) as row,* FROM (
+ SELECT * FROM asr_loc_detl_all
+ ) t
+ WHERE 1=1 and t.payment = 0
+ <include refid="selectAllSql"></include>
+ ) a
+ WHERE a.row BETWEEN ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
+ </select>
+
+
+
+ <select id="selectAllPymentcount" resultType="java.lang.Integer" parameterType="com.zy.asrs.entity.result.LocDetlDTO">
+ SELECT count(*) FROM (
+ SELECT ROW_NUMBER() over(order by matnr) as row,* FROM (
+ SELECT * FROM asr_loc_detl_all
+ ) t
+ WHERE 1=1 and t.payment = 0
+ <include refid="selectAllSql"></include>
+ ) a
+
+ </select>
</mapper>
--
Gitblit v1.9.1