Files
senmesh-zc/src/main/java/com/newyetai/usercenter/notice/mapper/NoticeContentTemplateMapper.xml
ran.shang 7e38b8d971 init
2025-06-11 09:42:13 +08:00

29 lines
1.1 KiB
XML

<?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="com.newyetai.usercenter.notice.dao.NoticeContentTemplateMapper">
<select id="listNoticeContentTemplateDTO" resultType="com.newyetai.usercenter.notice.dto.NoticeContentTemplateDTO">
select
*
from notice_content_template
where
deleted = 0
<if test='param.id != null'>
and id = #{param.id}
</if>
<if test="param.templateId != null">
and template_id = #{param.templateId}
</if>
<if test="param.channelType != null">
and channel_type = #{param.channelType}
</if>
<if test='param.titleLike != null and param.titleLike.trim() != ""'>
<bind name="titleLike" value="'%' + param.titleLike + '%'"/>
and title = #{titleLike}
</if>
<if test="param.enabled != null">
and enabled = #{param.enabled}
</if>
</select>
</mapper>