|
@@ -4,14 +4,12 @@
|
|
<resultMap id="BaseResultMap" type="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
<resultMap id="BaseResultMap" type="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
+ <result column="description" jdbcType="VARCHAR" property="description" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
<result column="create_uid" jdbcType="INTEGER" property="createUid" />
|
|
<result column="create_uid" jdbcType="INTEGER" property="createUid" />
|
|
<result column="disabled" jdbcType="CHAR" property="disabled" />
|
|
<result column="disabled" jdbcType="CHAR" property="disabled" />
|
|
</resultMap>
|
|
</resultMap>
|
|
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
|
|
- <result column="description" jdbcType="LONGVARCHAR" property="description" />
|
|
|
|
- </resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -71,27 +69,8 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, name, create_time, modify_time, create_uid, disabled
|
|
|
|
- </sql>
|
|
|
|
- <sql id="Blob_Column_List">
|
|
|
|
- description
|
|
|
|
|
|
+ id, name, description, create_time, modify_time, create_uid, disabled
|
|
</sql>
|
|
</sql>
|
|
- <select id="selectByExampleWithBLOBs" parameterType="com.koobietech.eas.mbg.model.EasEduCategoryExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
- select
|
|
|
|
- <if test="distinct">
|
|
|
|
- distinct
|
|
|
|
- </if>
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
- ,
|
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
|
- from eas_edu_category
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
|
- </if>
|
|
|
|
- <if test="orderByClause != null">
|
|
|
|
- order by ${orderByClause}
|
|
|
|
- </if>
|
|
|
|
- </select>
|
|
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasEduCategoryExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasEduCategoryExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -106,11 +85,9 @@
|
|
order by ${orderByClause}
|
|
order by ${orderByClause}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
- ,
|
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
|
from eas_edu_category
|
|
from eas_edu_category
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
</select>
|
|
@@ -128,11 +105,11 @@
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
SELECT LAST_INSERT_ID()
|
|
SELECT LAST_INSERT_ID()
|
|
</selectKey>
|
|
</selectKey>
|
|
- insert into eas_edu_category (name, create_time, modify_time,
|
|
|
|
- create_uid, disabled, description
|
|
|
|
|
|
+ insert into eas_edu_category (name, description, create_time,
|
|
|
|
+ modify_time, create_uid, disabled
|
|
)
|
|
)
|
|
- values (#{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{createUid,jdbcType=INTEGER}, #{disabled,jdbcType=CHAR}, #{description,jdbcType=LONGVARCHAR}
|
|
|
|
|
|
+ values (#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER}, #{disabled,jdbcType=CHAR}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
@@ -144,6 +121,9 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
name,
|
|
name,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="description != null">
|
|
|
|
+ description,
|
|
|
|
+ </if>
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
create_time,
|
|
create_time,
|
|
</if>
|
|
</if>
|
|
@@ -156,14 +136,14 @@
|
|
<if test="disabled != null">
|
|
<if test="disabled != null">
|
|
disabled,
|
|
disabled,
|
|
</if>
|
|
</if>
|
|
- <if test="description != null">
|
|
|
|
- description,
|
|
|
|
- </if>
|
|
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
#{name,jdbcType=VARCHAR},
|
|
#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="description != null">
|
|
|
|
+ #{description,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
@@ -176,9 +156,6 @@
|
|
<if test="disabled != null">
|
|
<if test="disabled != null">
|
|
#{disabled,jdbcType=CHAR},
|
|
#{disabled,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="description != null">
|
|
|
|
- #{description,jdbcType=LONGVARCHAR},
|
|
|
|
- </if>
|
|
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.koobietech.eas.mbg.model.EasEduCategoryExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.koobietech.eas.mbg.model.EasEduCategoryExample" resultType="java.lang.Long">
|
|
@@ -196,6 +173,9 @@
|
|
<if test="record.name != null">
|
|
<if test="record.name != null">
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.description != null">
|
|
|
|
+ description = #{record.description,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
@@ -208,31 +188,16 @@
|
|
<if test="record.disabled != null">
|
|
<if test="record.disabled != null">
|
|
disabled = #{record.disabled,jdbcType=CHAR},
|
|
disabled = #{record.disabled,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="record.description != null">
|
|
|
|
- description = #{record.description,jdbcType=LONGVARCHAR},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
</update>
|
|
</update>
|
|
- <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
- update eas_edu_category
|
|
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
- name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
|
|
- disabled = #{record.disabled,jdbcType=CHAR},
|
|
|
|
- description = #{record.description,jdbcType=LONGVARCHAR}
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
|
- </if>
|
|
|
|
- </update>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
<update id="updateByExample" parameterType="map">
|
|
update eas_edu_category
|
|
update eas_edu_category
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
+ description = #{record.description,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
@@ -247,6 +212,9 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
name = #{name,jdbcType=VARCHAR},
|
|
name = #{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="description != null">
|
|
|
|
+ description = #{description,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
@@ -259,25 +227,13 @@
|
|
<if test="disabled != null">
|
|
<if test="disabled != null">
|
|
disabled = #{disabled,jdbcType=CHAR},
|
|
disabled = #{disabled,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="description != null">
|
|
|
|
- description = #{description,jdbcType=LONGVARCHAR},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</update>
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
|
|
- update eas_edu_category
|
|
|
|
- set name = #{name,jdbcType=VARCHAR},
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- create_uid = #{createUid,jdbcType=INTEGER},
|
|
|
|
- disabled = #{disabled,jdbcType=CHAR},
|
|
|
|
- description = #{description,jdbcType=LONGVARCHAR}
|
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
|
- </update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
<update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasEduCategory">
|
|
update eas_edu_category
|
|
update eas_edu_category
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
|
+ description = #{description,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
create_uid = #{createUid,jdbcType=INTEGER},
|
|
create_uid = #{createUid,jdbcType=INTEGER},
|