|
@@ -34,6 +34,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="triggerUpdate" column="trigger_update" />
|
|
<result property="triggerUpdate" column="trigger_update" />
|
|
<result property="triggerDelete" column="trigger_delete" />
|
|
<result property="triggerDelete" column="trigger_delete" />
|
|
<result property="triggerSubmit" column="trigger_submit" />
|
|
<result property="triggerSubmit" column="trigger_submit" />
|
|
|
|
+ <result property="realTableName" column="real_table_name" />
|
|
|
|
+ <result property="filterConditions" column="filter_conditions" />
|
|
|
|
+ <result property="extendedAttributes" column="extended_attributes" />
|
|
<collection property="columns" javaType="java.util.List" resultMap="GenTableColumnResult" />
|
|
<collection property="columns" javaType="java.util.List" resultMap="GenTableColumnResult" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
@@ -64,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<sql id="selectGenTableVo">
|
|
<sql id="selectGenTableVo">
|
|
select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options,
|
|
select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options,
|
|
- create_by, create_time, update_by, update_time, remark, is_menu, menu_role, ak_column, dk_column, trigger_create, trigger_retrieve, trigger_update, trigger_delete, trigger_submit from gen_table
|
|
|
|
|
|
+ create_by, create_time, update_by, update_time, remark, is_menu, menu_role, ak_column, dk_column, trigger_create, trigger_retrieve, trigger_update, trigger_delete, trigger_submit, real_table_name, filter_conditions, extended_attributes from gen_table
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
|
|
<select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
|
|
@@ -123,7 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectGenTableById" parameterType="Long" resultMap="GenTableResult">
|
|
<select id="selectGenTableById" parameterType="Long" resultMap="GenTableResult">
|
|
- SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark, t.is_menu, t.menu_role, t.ak_column, t.dk_column, t.trigger_create, t.trigger_retrieve, t.trigger_update, t.trigger_delete, t.trigger_submit,
|
|
|
|
|
|
+ SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark, t.is_menu, t.menu_role, t.ak_column, t.dk_column, t.trigger_create, t.trigger_retrieve, t.trigger_update, t.trigger_delete, t.trigger_submit, t.real_table_name, t.filter_conditions, t.extended_attributes,
|
|
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
|
|
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
|
|
FROM gen_table t
|
|
FROM gen_table t
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
@@ -131,7 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectGenTableByName" parameterType="String" resultMap="GenTableResult">
|
|
<select id="selectGenTableByName" parameterType="String" resultMap="GenTableResult">
|
|
- SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark, t.is_menu, t.menu_role, t.ak_column, t.dk_column, t.trigger_create, t.trigger_retrieve, t.trigger_update, t.trigger_delete, t.trigger_submit,
|
|
|
|
|
|
+ SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark, t.is_menu, t.menu_role, t.ak_column, t.dk_column, t.trigger_create, t.trigger_retrieve, t.trigger_update, t.trigger_delete, t.trigger_submit, t.real_table_name, t.filter_conditions, t.extended_attributes
|
|
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
|
|
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
|
|
FROM gen_table t
|
|
FROM gen_table t
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
@@ -139,7 +142,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectGenTableAll" parameterType="String" resultMap="GenTableResult">
|
|
<select id="selectGenTableAll" parameterType="String" resultMap="GenTableResult">
|
|
- SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.options, t.remark, t.is_menu, t.menu_role, t.ak_column, t.dk_column, t.trigger_create, t.trigger_retrieve, t.trigger_update, t.trigger_delete, t.trigger_submit,
|
|
|
|
|
|
+ SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.options, t.remark, t.is_menu, t.menu_role, t.ak_column, t.dk_column, t.trigger_create, t.trigger_retrieve, t.trigger_update, t.trigger_delete, t.trigger_submit, t.real_table_name, t.filter_conditions, t.extended_attributes
|
|
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
|
|
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
|
|
FROM gen_table t
|
|
FROM gen_table t
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
@@ -169,6 +172,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="triggerUpdate != null and triggerUpdate != ''">trigger_update,</if>
|
|
<if test="triggerUpdate != null and triggerUpdate != ''">trigger_update,</if>
|
|
<if test="triggerDelete != null and triggerDelete != ''">trigger_delete,</if>
|
|
<if test="triggerDelete != null and triggerDelete != ''">trigger_delete,</if>
|
|
<if test="triggerSubmit != null and triggerSubmit !=''">trigger_submit,</if>
|
|
<if test="triggerSubmit != null and triggerSubmit !=''">trigger_submit,</if>
|
|
|
|
+ <if test="realTableName != null and realTableName != ''">real_table_name,</if>
|
|
|
|
+ <if test="filterConditions != null and filterConditions != ''">filter_conditions,</if>
|
|
|
|
+ <if test="extendedAttributes != null and extendedAttributes != ''">extended_attributes,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
create_time
|
|
create_time
|
|
)values(
|
|
)values(
|
|
@@ -193,6 +199,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="triggerUpdate != null and triggerUpdate != ''">#{triggerUpdate},</if>
|
|
<if test="triggerUpdate != null and triggerUpdate != ''">#{triggerUpdate},</if>
|
|
<if test="triggerDelete != null and triggerDelete != ''">#{triggerDelete},</if>
|
|
<if test="triggerDelete != null and triggerDelete != ''">#{triggerDelete},</if>
|
|
<if test="triggerSubmit != null and triggerSubmit !=''">#{triggerSubmit},</if>
|
|
<if test="triggerSubmit != null and triggerSubmit !=''">#{triggerSubmit},</if>
|
|
|
|
+ <if test="realTableName != null and realTableName != ''">#{realTableName},</if>
|
|
|
|
+ <if test="filterConditions != null and filterConditions != ''">#{filterConditions},</if>
|
|
|
|
+ <if test="extendedAttributes != null and extendedAttributes != ''">#{extendedAttributes},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
sysdate()
|
|
sysdate()
|
|
)
|
|
)
|
|
@@ -226,6 +235,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="triggerUpdate != null and triggerUpdate != ''">trigger_update = #{triggerUpdate},</if>
|
|
<if test="triggerUpdate != null and triggerUpdate != ''">trigger_update = #{triggerUpdate},</if>
|
|
<if test="triggerDelete != null and triggerDelete != ''">trigger_delete = #{triggerDelete},</if>
|
|
<if test="triggerDelete != null and triggerDelete != ''">trigger_delete = #{triggerDelete},</if>
|
|
<if test="triggerSubmit != null and triggerSubmit !=''">trigger_submit = #{triggerSubmit},</if>
|
|
<if test="triggerSubmit != null and triggerSubmit !=''">trigger_submit = #{triggerSubmit},</if>
|
|
|
|
+ <if test="realTableName != null and realTableName !=''">real_table_name = #{realTableName},</if>
|
|
|
|
+ <if test="filterConditions != null and filterConditions !=''">filter_conditions = #{filterConditions},</if>
|
|
|
|
+ <if test="extendedAttributes != null and extendedAttributes !=''">extended_attributes = #{extendedAttributes},</if>
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|
|
</set>
|
|
</set>
|
|
where table_id = #{tableId}
|
|
where table_id = #{tableId}
|