|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="title" column="title" /> |
|
|
|
<result property="type" column="type" /> |
|
|
|
<result property="orderNo" column="order_no" /> |
|
|
|
<result property="numberWords" column="number_words" /> |
|
|
|
<result property="delFlag" column="del_flag" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
@ -17,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectAppletQuestionVo"> |
|
|
|
select id, title, type, order_no, del_flag, create_by, create_time, update_by, update_time from applet_question |
|
|
|
select id, title, type, order_no, del_flag,number_words, create_by, create_time, update_by, update_time from applet_question |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectAppletQuestionList" parameterType="AppletQuestion" resultMap="AppletQuestionResult"> |
|
|
@ -26,6 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="title != null and title != ''"> and title = #{title}</if> |
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if> |
|
|
|
<if test="orderNo != null "> and order_no = #{orderNo}</if> |
|
|
|
<if test="numberWords != null "> and number_words = #{numberWords}</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@ -41,6 +44,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="type != null and type != ''">type,</if> |
|
|
|
<if test="orderNo != null">order_no,</if> |
|
|
|
<if test="delFlag != null">del_flag,</if> |
|
|
|
<if test="numberWords != null">number_words,</if> |
|
|
|
|
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
@ -50,6 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="title != null and title != ''">#{title},</if> |
|
|
|
<if test="type != null and type != ''">#{type},</if> |
|
|
|
<if test="orderNo != null">#{orderNo},</if> |
|
|
|
<if test="numberWords != null">#{numberWords},</if> |
|
|
|
|
|
|
|
<if test="delFlag != null">#{delFlag},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
@ -64,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="title != null and title != ''">title = #{title},</if> |
|
|
|
<if test="type != null and type != ''">type = #{type},</if> |
|
|
|
<if test="orderNo != null">order_no = #{orderNo},</if> |
|
|
|
<if test="numberWords != null">number_words= #{numberWords},</if> |
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|