From 3222d83845148e2479af6aeb0f029def5f28f8b2 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Mon, 25 Mar 2024 12:34:53 +0800
Subject: [PATCH] Merge branch 'jc' of http://s16s652780.51mypc.cn:49896/r/zhba_management_w_bf into jc
---
src/main/java/org/springblade/modules/system/mapper/UserWxMapper.xml | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/system/mapper/UserWxMapper.xml b/src/main/java/org/springblade/modules/system/mapper/UserWxMapper.xml
index b313418..61395ef 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserWxMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserWxMapper.xml
@@ -145,6 +145,31 @@
where bu.is_deleted = 0
and bu.id = #{id}
</select>
+ <select id="exportUser" resultType="org.springblade.modules.system.excel.UserWxExcel">
+ SELECT
+ bu.id,
+ bd.dept_name AS deptId,
+ bu.real_name,
+ bu.phone,
+ bu.cardid
+ FROM
+ blade_user_wx bu
+ LEFT JOIN blade_dept bd ON bu.dept_id = bd.id
+ where bu.is_deleted = 0
+ <if test="obj.account != null and obj.account != ''">
+ AND bu.account LIKE CONCAT('%',#{obj.account},'%')
+ </if>
+ <if test="obj.realName != null and obj.realName != ''">
+ AND bu.real_name LIKE CONCAT('%',#{obj.realName},'%')
+ </if>
+ <if test="obj.deptId != null and obj.deptId != ''">
+ AND bu.dept_id = #{obj.deptId}
+ </if>
+ <if test="obj.cardid != null and obj.cardid != ''">
+ and bu.cardid like concat('%', #{obj.cardid},'%')
+ </if>
+ ORDER BY bu.id desc
+ </select>
</mapper>
--
Gitblit v1.9.3