From 7d7ac69a8af85ab9e67c1dc2c6f52b03d27669e4 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 26 十二月 2024 08:58:19 +0800
Subject: [PATCH] add:阿里云短信模板获取签名和模板信息
---
src/main/resources/mapper/sms/SmsTaskDetailMapper.xml | 38 +++++++++++++++++++++++++-------------
1 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/src/main/resources/mapper/sms/SmsTaskDetailMapper.xml b/src/main/resources/mapper/sms/SmsTaskDetailMapper.xml
index 7be742f..f946e3b 100644
--- a/src/main/resources/mapper/sms/SmsTaskDetailMapper.xml
+++ b/src/main/resources/mapper/sms/SmsTaskDetailMapper.xml
@@ -2,18 +2,30 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mzl.flower.mapper.SmsTaskDetailMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.mzl.flower.entity.SmsTaskDetailDO">
- <id column="id" property="id" />
- <result column="deleted" property="deleted" />
- <result column="create_by" property="createBy" />
- <result column="create_time" property="createTime" />
- <result column="update_by" property="updateBy" />
- <result column="update_time" property="updateTime" />
- <result column="sms_task_id" property="smsTaskId" />
- <result column="sms_template_id" property="smsTemplateId" />
- <result column="phone" property="phone" />
- <result column="result" property="result" />
- </resultMap>
+ <select id="queryPage" resultType="com.mzl.flower.dto.response.sms.SmsTaskDetailVO">
+ select t.* from t_sms_task_detail t
+ where t.deleted= 0
+ <if test="dto.id!=null ">
+ and t.id = #{dto.id}
+ </if>
+ <if test="dto.result != null and dto.result != ''">
+ and t.result like concat('%', #{dto.result}, '%')
+ </if>
+ <if test="dto.phone != null and dto.phone != ''">
+ and t.phone like concat('%', #{dto.phone}, '%')
+ </if>
+
+ <if test="dto.startDate!=null ">
+ <![CDATA[
+ AND t.create_time >= #{dto.startDate}
+ ]]>
+ </if>
+ <if test="dto.endDate!=null ">
+ <![CDATA[
+ AND t.create_time <= #{dto.endDate}
+ ]]>
+ </if>
+
+ </select>
</mapper>
--
Gitblit v1.9.3