|
@@ -29,6 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="menuRole" column="menu_role" />
|
|
|
<result property="akColumn" column="ak_column" />
|
|
|
<result property="dkColumn" column="dk_column" />
|
|
|
+ <result property="triggerCreate" column="trigger_create" />
|
|
|
+ <result property="triggerRetrieve" column="trigger_retrieve" />
|
|
|
+ <result property="triggerUpdate" column="trigger_update" />
|
|
|
+ <result property="triggerDelete" column="trigger_delete" />
|
|
|
+ <result property="triggerSubmit" column="trigger_submit" />
|
|
|
<collection property="columns" javaType="java.util.List" resultMap="GenTableColumnResult" />
|
|
|
</resultMap>
|
|
|
|
|
@@ -58,7 +63,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<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, create_by, create_time, update_by, update_time, remark, is_menu, menu_role, ak_column, dk_column from gen_table
|
|
|
+ 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
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
|
|
@@ -117,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<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,
|
|
|
+ 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,
|
|
|
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
|
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
@@ -125,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<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,
|
|
|
+ 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,
|
|
|
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
|
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
@@ -133,7 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<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,
|
|
|
+ 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,
|
|
|
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
|
|
|
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
|
|
@@ -158,6 +164,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="menuRole != null and menuRole != ''">menu_role,</if>
|
|
|
<if test="akColumn != null ">ak_column,</if>
|
|
|
<if test="dkColumn != null">dk_column,</if>
|
|
|
+ <if test="triggerCreate != null and triggerCreate != ''">trigger_create,</if>
|
|
|
+ <if test="triggerRetrieve != null and triggerRetrieve != ''">trigger_retrieve,</if>
|
|
|
+ <if test="triggerUpdate != null and triggerUpdate != ''">trigger_update,</if>
|
|
|
+ <if test="triggerDelete != null and triggerDelete != ''">trigger_delete,</if>
|
|
|
+ <if test="triggerSubmit != null and triggerSubmit !=''">trigger_submit,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
create_time
|
|
|
)values(
|
|
@@ -177,7 +188,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="menuRole != null and menuRole != ''">#{menuRole},</if>
|
|
|
<if test="akColumn != null">#{akColumn},</if>
|
|
|
<if test="dkColumn != null ">#{dkColumn},</if>
|
|
|
- <if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
+ <if test="triggerCreate != null and triggerCreate != ''">#{triggerCreate},</if>
|
|
|
+ <if test="triggerRetrieve != null and triggerRetrieve != ''">#{triggerRetrieve},</if>
|
|
|
+ <if test="triggerUpdate != null and triggerUpdate != ''">#{triggerUpdate},</if>
|
|
|
+ <if test="triggerDelete != null and triggerDelete != ''">#{triggerDelete},</if>
|
|
|
+ <if test="triggerSubmit != null and triggerSubmit !=''">#{triggerSubmit},</if>
|
|
|
+ <if test="createBy != null and createBy != ''">#{#{}},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|
|
@@ -205,6 +221,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="menuRole != null and menuRole != ''">menu_role = #{menuRole},</if>
|
|
|
<if test="akColumn != null">ak_column = #{akColumn},</if>
|
|
|
<if test="dkColumn != null">dk_column = #{dkColumn},</if>
|
|
|
+ <if test="triggerCreate != null and triggerCreate != ''">trigger_create = #{triggerCreate},</if>
|
|
|
+ <if test="triggerRetrieve != null and triggerRetrieve != ''">trigger_retrieve = #{triggerRetrieve},</if>
|
|
|
+ <if test="triggerUpdate != null and triggerUpdate != ''">trigger_update = #{triggerUpdate},</if>
|
|
|
+ <if test="triggerDelete != null and triggerDelete != ''">trigger_delete = #{triggerDelete},</if>
|
|
|
+ <if test="triggerSubmit != null and triggerSubmit !=''">trigger_submit = #{triggerSubmit},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where table_id = #{tableId}
|