<?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>
|