From 441eb455e1e8a9283cd569c132b14ba8da4c54a6 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期六, 11 十月 2025 17:49:47 +0800
Subject: [PATCH] 导出,短信,模板消息
---
ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml
index 6184c2e..7f8547d 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TCrmBranchMapper.xml
@@ -51,5 +51,32 @@
</where>
ORDER BY create_time DESC
</select>
+ <select id="exportList" resultType="com.ruoyi.system.export.TCrmBranchExport">
+ select id, user_id, branch_name, user_name, phone, money_commission, points_commission,
+ user_points, status, create_time, update_time, create_by, update_by, disabled
+ from t_crm_branch
+ <where>
+ <if test="query.branchName != null and query.branchName != ''">
+ and branch_name like concat('%',#{query.branchName},'%')
+ </if>
+ <if test="query.userName != null and query.userName != ''">
+ and user_name like concat('%',#{query.userName},'%')
+ </if>
+ <if test="query.phone != null and query.phone != ''">
+ and phone like concat('%',#{query.phone},'%')
+ </if>
+ <if test="query.status != null">
+ and status = #{query.status}
+ </if>
+ <if test="query.branchIds != null and query.branchIds.size()>0">
+ and id in
+ <foreach item="item" collection="query.branchIds" separator="," open="(" close=")" index="">
+ #{item}
+ </foreach>
+ </if>
+ AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
+ </where>
+ ORDER BY create_time DESC
+ </select>
</mapper>
--
Gitblit v1.7.1