|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="type" column="type" />
|
|
<result property="type" column="type" />
|
|
<result property="question" column="question" />
|
|
<result property="question" column="question" />
|
|
|
|
+ <result property="content" column="content" />
|
|
<result property="sort" column="sort" />
|
|
<result property="sort" column="sort" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="revision" column="revision" />
|
|
<result property="revision" column="revision" />
|
|
@@ -19,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTXinyiRecommendQaVo">
|
|
<sql id="selectTXinyiRecommendQaVo">
|
|
- select id, type, question, sort, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_recommend_qa
|
|
|
|
|
|
+ select id, type, question, content, sort, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_recommend_qa
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTXinyiRecommendQaList" parameterType="TXinyiRecommendQa" resultMap="TXinyiRecommendQaResult">
|
|
<select id="selectTXinyiRecommendQaList" parameterType="TXinyiRecommendQa" resultMap="TXinyiRecommendQaResult">
|
|
@@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
1 = 1
|
|
1 = 1
|
|
<if test="type != null "> and type = #{type}</if>
|
|
<if test="type != null "> and type = #{type}</if>
|
|
<if test="question != null and question != ''"> and question = #{question}</if>
|
|
<if test="question != null and question != ''"> and question = #{question}</if>
|
|
|
|
+ <if test="content != null and content != ''"> and content = #{content}</if>
|
|
<if test="sort != null and sort != ''"> and sort = #{sort}</if>
|
|
<if test="sort != null and sort != ''"> and sort = #{sort}</if>
|
|
<if test="revision != null "> and revision = #{revision}</if>
|
|
<if test="revision != null "> and revision = #{revision}</if>
|
|
</where>
|
|
</where>
|
|
@@ -44,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="type != null">type,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="question != null">question,</if>
|
|
<if test="question != null">question,</if>
|
|
|
|
+ <if test="content != null">content,</if>
|
|
<if test="sort != null">sort,</if>
|
|
<if test="sort != null">sort,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="revision != null">revision,</if>
|
|
<if test="revision != null">revision,</if>
|
|
@@ -56,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="type != null">#{type},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="question != null">#{question},</if>
|
|
<if test="question != null">#{question},</if>
|
|
|
|
+ <if test="content != null">#{content},</if>
|
|
<if test="sort != null">#{sort},</if>
|
|
<if test="sort != null">#{sort},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="revision != null">#{revision},</if>
|
|
<if test="revision != null">#{revision},</if>
|
|
@@ -72,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="question != null">question = #{question},</if>
|
|
<if test="question != null">question = #{question},</if>
|
|
|
|
+ <if test="content != null">content = #{content},</if>
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
<if test="revision != null">revision = #{revision},</if>
|