init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user