RichTextConteMapper.xml 882 Bytes
<?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.order.erp.mapper.order.RichTextContentMapper">
    <select id="queryTitle" resultType="com.order.erp.domain.vo.order.RichTextAllTitleResultVO">
            SELECT id, title, deduct_amount , is_template
            FROM rich_text_content
            <where>
             enable_flag = 10
              <if test="richTextContentVO.title != null and richTextContentVO.title != ''">
            AND title like concat('%',#{richTextContentVO.title},'%')
              </if>
                <if test="richTextContentVO.isTrackerBlock != null">
                    AND is_tracker_block = #{richTextContentVO.isTrackerBlock}
                </if>
            AND status = 10
            </where>
    </select>
</mapper>