zhongrj
2023-06-03 402bc2c2a131667b7b007e5f35d3a14339a2c072
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.gistack.alerts.sms.mapper.SmsTemplateMapper">
 
    <!--自定义列表查询-->
    <select id="selectSmsTemplatePage" resultType="cn.gistack.alerts.sms.vo.SmsTemplateVO">
        select * from sm_sms_template where is_deleted = 0
        <if test="smsTemplate.templateName!=null and smsTemplate.templateName!=''">
            and template_name like concat(concat('%',#{smsTemplate.templateName}),'%')
        </if>
        <if test="smsTemplate.templateId!=null and smsTemplate.templateId!=''">
            and template_id like concat(concat('%',#{smsTemplate.templateId}),'%')
        </if>
        <if test="smsTemplate.noticeType!=null and smsTemplate.noticeType!=''">
            and notice_type = #{smsTemplate.noticeType}
        </if>
        <if test="smsTemplate.type!=null and smsTemplate.type!=''">
            and type = #{smsTemplate.type}
        </if>
        <if test="smsTemplate.noticeMode!=null and smsTemplate.noticeMode!=''">
            and notice_mode = #{smsTemplate.noticeMode}
        </if>
    </select>
</mapper>