|
|
@@ -11,6 +11,7 @@
|
|
|
<result column="modules" property="modules" jdbcType="VARCHAR"/>
|
|
|
<result column="data_source_code" property="dataSourceCode" jdbcType="VARCHAR"/>
|
|
|
<result column="config_json" property="configJson" jdbcType="VARCHAR"/>
|
|
|
+ <result column="type_flag" property="typeFlag" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
<trim suffixOverrides=",">
|
|
|
@@ -32,6 +33,8 @@
|
|
|
|
|
|
config_json,
|
|
|
|
|
|
+ type_flag,
|
|
|
+
|
|
|
</trim>
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
@@ -75,6 +78,9 @@
|
|
|
<if test="configJson!= null">
|
|
|
config_json,
|
|
|
</if>
|
|
|
+ <if test="typeFlag!= null">
|
|
|
+ type_flag,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -104,6 +110,9 @@
|
|
|
<if test="configJson != null">
|
|
|
#{configJson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="typeFlag != null">
|
|
|
+ #{typeFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.QueryConfig">
|
|
|
@@ -136,6 +145,9 @@
|
|
|
<if test="configJson != null">
|
|
|
config_json= #{configJson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="typeFlag != null">
|
|
|
+ type_flag= #{typeFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -173,6 +185,7 @@
|
|
|
OR table_name LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR tableColumns LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR dataBaseType LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR type_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
</trim>
|
|
|
</if>
|
|
|
|
|
|
@@ -248,6 +261,7 @@
|
|
|
OR table_name LIKE concat('%',#{searchKey},'%')
|
|
|
OR tableColumns LIKE concat('%',#{searchKey},'%')
|
|
|
OR dataBaseType LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR type_flag LIKE concat('%',#{searchKey},'%')
|
|
|
</trim>
|
|
|
</if>
|
|
|
<if test="advancedQuery != null and !"".equals(advancedQuery)">
|