| | |
| | | <select id="selectEmailTemplatePage" resultMap="emailTemplateResultMap"> |
| | | select * from blade_email_template |
| | | <where> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="title != null and title != ''">and title like CONCAT('%', #{title},'%')</if> |
| | | <if test="content != null and content != ''">and content = #{content}</if> |
| | | <if test="createTime != null ">and create_time = #{createTime}</if> |
| | | <if test="updateTime != null ">and update_time = #{updateTime}</if> |
| | | <if test="isDeleted != null ">and is_deleted = #{isDeleted}</if> |
| | | <if test="createBy != null ">and create_by = #{createBy}</if> |
| | | <if test="emailTemplate.id != null ">and id = #{emailTemplate.id}</if> |
| | | <if test="emailTemplate.title != null and emailTemplate.title != ''">and title like CONCAT('%', #{emailTemplate.title},'%')</if> |
| | | <if test="emailTemplate.content != null and emailTemplate.content != ''">and content = #{emailTemplate.content}</if> |
| | | <if test="emailTemplate.createTime != null ">and create_time = #{emailTemplate.createTime}</if> |
| | | <if test="emailTemplate.updateTime != null ">and update_time = #{emailTemplate.updateTime}</if> |
| | | <if test="emailTemplate.isDeleted != null ">and is_deleted = #{emailTemplate.isDeleted}</if> |
| | | <if test="emailTemplate.createBy != null ">and create_by = #{emailTemplate.createBy}</if> |
| | | and is_deleted = 0 |
| | | </where> |
| | | </select> |