|
@@ -7,11 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="TTemplatePage" id="TTemplatePageResult">
|
|
<resultMap type="TTemplatePage" id="TTemplatePageResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="title" column="title" />
|
|
<result property="title" column="title" />
|
|
- <result property="content" column="content" />
|
|
|
|
<result property="route" column="route" />
|
|
<result property="route" column="route" />
|
|
- <result property="customer" column="customer" />
|
|
|
|
- <result property="stakeholder" column="stakeholder" />
|
|
|
|
- <result property="stakeholderBirthday" column="stakeholder_birthday" />
|
|
|
|
<result property="enable" column="enable" />
|
|
<result property="enable" column="enable" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
@@ -21,18 +17,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTTemplatePageVo">
|
|
<sql id="selectTTemplatePageVo">
|
|
- select id, title, content, route, customer, stakeholder, stakeholder_birthday, enable, create_by, create_time, update_by, update_time, remark from t_template_page
|
|
|
|
|
|
+ select id, title, route, enable, create_by, create_time, update_by, update_time, remark from t_template_page
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTTemplatePageList" parameterType="TTemplatePage" resultMap="TTemplatePageResult">
|
|
<select id="selectTTemplatePageList" parameterType="TTemplatePage" resultMap="TTemplatePageResult">
|
|
<include refid="selectTTemplatePageVo"/>
|
|
<include refid="selectTTemplatePageVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
- <if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
|
<if test="route != null and route != ''"> and route = #{route}</if>
|
|
<if test="route != null and route != ''"> and route = #{route}</if>
|
|
- <if test="customer != null and customer != ''"> and customer = #{customer}</if>
|
|
|
|
- <if test="stakeholder != null and stakeholder != ''"> and stakeholder = #{stakeholder}</if>
|
|
|
|
- <if test="stakeholderBirthday != null "> and stakeholder_birthday = #{stakeholderBirthday}</if>
|
|
|
|
<if test="enable != null "> and enable = #{enable}</if>
|
|
<if test="enable != null "> and enable = #{enable}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -46,11 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into t_template_page
|
|
insert into t_template_page
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="title != null">title,</if>
|
|
<if test="title != null">title,</if>
|
|
- <if test="content != null">content,</if>
|
|
|
|
<if test="route != null">route,</if>
|
|
<if test="route != null">route,</if>
|
|
- <if test="customer != null">customer,</if>
|
|
|
|
- <if test="stakeholder != null">stakeholder,</if>
|
|
|
|
- <if test="stakeholderBirthday != null">stakeholder_birthday,</if>
|
|
|
|
<if test="enable != null">enable,</if>
|
|
<if test="enable != null">enable,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
@@ -60,11 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="title != null">#{title},</if>
|
|
<if test="title != null">#{title},</if>
|
|
- <if test="content != null">#{content},</if>
|
|
|
|
<if test="route != null">#{route},</if>
|
|
<if test="route != null">#{route},</if>
|
|
- <if test="customer != null">#{customer},</if>
|
|
|
|
- <if test="stakeholder != null">#{stakeholder},</if>
|
|
|
|
- <if test="stakeholderBirthday != null">#{stakeholderBirthday},</if>
|
|
|
|
<if test="enable != null">#{enable},</if>
|
|
<if test="enable != null">#{enable},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -78,11 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update t_template_page
|
|
update t_template_page
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="title != null">title = #{title},</if>
|
|
<if test="title != null">title = #{title},</if>
|
|
- <if test="content != null">content = #{content},</if>
|
|
|
|
<if test="route != null">route = #{route},</if>
|
|
<if test="route != null">route = #{route},</if>
|
|
- <if test="customer != null">customer = #{customer},</if>
|
|
|
|
- <if test="stakeholder != null">stakeholder = #{stakeholder},</if>
|
|
|
|
- <if test="stakeholderBirthday != null">stakeholder_birthday = #{stakeholderBirthday},</if>
|
|
|
|
<if test="enable != null">enable = #{enable},</if>
|
|
<if test="enable != null">enable = #{enable},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|