From a8d2cb07f6440dc54dc4005b0b06d5a47cb1517d Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期一, 16 十二月 2024 13:34:03 +0800 Subject: [PATCH] 12.16 --- ruoyi-service/ruoyi-account/src/main/resources/mapper/account/UserCancellationLogMapper.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/UserCancellationLogMapper.xml b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/UserCancellationLogMapper.xml index a4902f5..9f83d27 100644 --- a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/UserCancellationLogMapper.xml +++ b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/UserCancellationLogMapper.xml @@ -15,5 +15,24 @@ <sql id="Base_Column_List"> id, del_flag, create_time, app_user_id, vip_id </sql> + <select id="pageList" resultType="com.ruoyi.account.api.model.UserCancellationLog"> + select t1.*,t2.name as userName,t2.phone as userPhone + from t_user_cancellation_log t1 + left join t_app_user t2 on t1.app_user_id = t2.id + <where> + <if test="agentQuery.name != null and agentQuery.name != ''"> + and t2.name like concat('%',#{agentQuery.name},'%') + </if> + <if test="agentQuery.phone != null and agentQuery.phone != ''"> + and t2.phone like concat('%',#{agentQuery.phone},'%') + </if> + <if test="agentQuery.vipId != null"> + and t1.vip_id = #{agentQuery.vipId} + </if> + <if test="agentQuery.localDate1 != null"> + and DATE(t1.create_time) between #{agentQuery.localDate1} and #{agentQuery.localDate2} + </if> + </where> + </select> </mapper> -- Gitblit v1.7.1