|
|
@@ -13,9 +13,11 @@
|
|
|
<result column="field_id" property="fieldId" jdbcType="VARCHAR"/>
|
|
|
<result column="gen_json" property="genJson" jdbcType="VARCHAR"/>
|
|
|
<result column="del_flag" property="delFlag" jdbcType="VARCHAR"/>
|
|
|
+ <result column="type_flag" property="typeFlag" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, tableName, className, remark, genTable, genClass, genList, genForm, field_id, gen_json, del_flag
|
|
|
+ id, tableName, className, remark, genTable, genClass,
|
|
|
+ genList, genForm, field_id, gen_json, del_flag, type_flag
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
@@ -61,6 +63,9 @@
|
|
|
<if test="genJson != null">
|
|
|
gen_json,
|
|
|
</if>
|
|
|
+ <if test="typeFlag != null">
|
|
|
+ type_flag,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -93,6 +98,9 @@
|
|
|
<if test="genJson != null">
|
|
|
#{genJson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="typeFlag != null">
|
|
|
+ #{typeFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.GenCode">
|
|
|
@@ -125,6 +133,9 @@
|
|
|
<if test="genJson != null">
|
|
|
gen_json = #{genJson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="typeFlag != null">
|
|
|
+ type_flag = #{typeFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -166,6 +177,7 @@
|
|
|
OR tableName LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR className LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR type_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
</trim>
|
|
|
</if>
|
|
|
</where>
|