From 3493a1f3ee3010cdca1013dd11c97e551101df58 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 26 十二月 2024 17:21:12 +0800
Subject: [PATCH] add:阿里云短信模板获取签名和模板信息2

---
 src/main/resources/mapper/sms/SmsTaskMapper.xml |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/main/resources/mapper/sms/SmsTaskMapper.xml b/src/main/resources/mapper/sms/SmsTaskMapper.xml
index 9a453f0..978ff2c 100644
--- a/src/main/resources/mapper/sms/SmsTaskMapper.xml
+++ b/src/main/resources/mapper/sms/SmsTaskMapper.xml
@@ -4,19 +4,20 @@
 
 
     <select id="queryPage" resultType="com.mzl.flower.dto.response.sms.SmsTaskVO">
-        select t.* from t_sms_task t
+        SELECT
+        t.* ,st.`name` as sms_template_name,st.description as sms_template_desc
+        FROM
+        t_sms_task t
+        LEFT JOIN t_sms_template st ON t.sms_template_id = st.id
         where t.deleted= 0
-        <if test="dto.id!=null ">
-            and t.id = #{dto.id}
-        </if>
-        <if test="dto.code != null and dto.code != ''">
-            and t.code like concat('%', #{dto.code}, '%')
-        </if>
         <if test="dto.name != null and dto.name != ''">
             and t.name like concat('%', #{dto.name}, '%')
         </if>
-        <if test="dto.description != null and dto.description != ''">
-            and t.description like concat('%', #{dto.description}, '%')
+        <if test="dto.smsTemplateName != null and dto.smsTemplateName != ''">
+            and st.name like concat('%', #{dto.smsTemplateName}, '%')
+        </if>
+        <if test="dto.status != null and dto.status != ''">
+            and t.status =  #{dto.status}
         </if>
         <if test="dto.startDate!=null ">
             <![CDATA[

--
Gitblit v1.9.3