|
@@ -4,6 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="com.bowintek.practice.model.SrTag">
|
|
|
<id column="tagId" jdbcType="VARCHAR" property="tagId" />
|
|
|
<result column="tagName" jdbcType="VARCHAR" property="tagName" />
|
|
|
+ <result column="disOrder" jdbcType="INTEGER" property="disOrder" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -64,7 +65,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- tagId, tagName
|
|
|
+ tagId, tagName, disOrder
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.bowintek.practice.model.SrTagExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -97,8 +98,10 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.bowintek.practice.model.SrTag">
|
|
|
- insert into sr_tag (tagId, tagName)
|
|
|
- values (#{tagId,jdbcType=VARCHAR}, #{tagName,jdbcType=VARCHAR})
|
|
|
+ insert into sr_tag (tagId, tagName, disOrder
|
|
|
+ )
|
|
|
+ values (#{tagId,jdbcType=VARCHAR}, #{tagName,jdbcType=VARCHAR}, #{disOrder,jdbcType=INTEGER}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.bowintek.practice.model.SrTag">
|
|
|
insert into sr_tag
|
|
@@ -109,6 +112,9 @@
|
|
|
<if test="tagName != null">
|
|
|
tagName,
|
|
|
</if>
|
|
|
+ <if test="disOrder != null">
|
|
|
+ disOrder,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="tagId != null">
|
|
@@ -117,6 +123,9 @@
|
|
|
<if test="tagName != null">
|
|
|
#{tagName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="disOrder != null">
|
|
|
+ #{disOrder,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.bowintek.practice.model.SrTagExample" resultType="java.lang.Long">
|
|
@@ -134,6 +143,9 @@
|
|
|
<if test="row.tagName != null">
|
|
|
tagName = #{row.tagName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="row.disOrder != null">
|
|
|
+ disOrder = #{row.disOrder,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -142,7 +154,8 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update sr_tag
|
|
|
set tagId = #{row.tagId,jdbcType=VARCHAR},
|
|
|
- tagName = #{row.tagName,jdbcType=VARCHAR}
|
|
|
+ tagName = #{row.tagName,jdbcType=VARCHAR},
|
|
|
+ disOrder = #{row.disOrder,jdbcType=INTEGER}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -153,12 +166,16 @@
|
|
|
<if test="tagName != null">
|
|
|
tagName = #{tagName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="disOrder != null">
|
|
|
+ disOrder = #{disOrder,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where tagId = #{tagId,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.bowintek.practice.model.SrTag">
|
|
|
update sr_tag
|
|
|
- set tagName = #{tagName,jdbcType=VARCHAR}
|
|
|
+ set tagName = #{tagName,jdbcType=VARCHAR},
|
|
|
+ disOrder = #{disOrder,jdbcType=INTEGER}
|
|
|
where tagId = #{tagId,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|