From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 05 二月 2024 11:56:52 +0800
Subject: [PATCH] 更新bug修改

---
 cloud-server-account/src/main/resources/mapper/UserIntegralChangesMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/cloud-server-account/src/main/resources/mapper/UserIntegralChangesMapper.xml b/cloud-server-account/src/main/resources/mapper/UserIntegralChangesMapper.xml
index 5f858ec..f83905f 100644
--- a/cloud-server-account/src/main/resources/mapper/UserIntegralChangesMapper.xml
+++ b/cloud-server-account/src/main/resources/mapper/UserIntegralChangesMapper.xml
@@ -3,4 +3,24 @@
 <mapper namespace="com.dsh.account.mapper.UserIntegralChangesMapper">
 
 
+    <select id="listAll" resultType="com.dsh.account.entity.UserIntegral">
+        select t1.id,t2.province,t2.city,t2.name,t2.phone,t1.type,t1.oldIntegral,t1.newIntegral,t1.category
+        ,t1.insertTime,t1.remark from t_user_integral_changes t1 left join t_app_user t2 on t1.appUserId = t2.id
+        where 1=1
+        <if test="query.name !=null and query.name !=''">
+            and t2.name like concat("%",#{query.name},"%")
+        </if>
+        <if test="query.phone !=null and query.phone !=''">
+            and t2.phone like concat("%",#{query.phone},"%")
+        </if>
+        <if test="query.type !=null ">
+            and t1.type like concat("%",#{query.type},"%")
+        </if>
+        <if test="query.category !=null ">
+            and t1.category like concat("%",#{query.category},"%")
+        </if>
+        <if test="sTime !=null ">
+            and t1.insertTime between #{sTime} and #{eTime}
+        </if>
+    </select>
 </mapper>

--
Gitblit v1.7.1