|
@@ -39,10 +39,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isOut" column="is_out" />
|
|
|
<result property="regular" column="regular" />
|
|
|
<result property="tableColumnName" column="table_column_name" />
|
|
|
+ <result property="seqName" column="seq_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectGenTableColumnVo">
|
|
|
- select id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, foreign_key, dict_type, sort, create_by, create_time, update_by, update_time, hr_parent_id, mask, default_value, num_rows, num_columns, field_translator, extended_attributes, is_in, is_out, regular, table_column_name from gen_table_column
|
|
|
+ select id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, foreign_key, dict_type, sort, create_by, create_time, update_by, update_time, hr_parent_id, mask, default_value, num_rows, num_columns, field_translator, extended_attributes, is_in, is_out, regular, table_column_name, seq_name from gen_table_column
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectGenTableColumnListByTableId" parameterType="GenTableColumn" resultMap="GenTableColumnResult">
|
|
@@ -124,6 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isOut != null and isOut != ''">is_out,</if>
|
|
|
<if test="regular != null and regular != ''">regular,</if>
|
|
|
<if test="tableColumnName != null and tableColumnName != ''">table_column_name,</if>
|
|
|
+ <if test="seqName != null and seqName != ''">seq_name,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="tableId != null and tableId != ''">#{tableId},</if>
|
|
@@ -156,6 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isOut != null and isOut != ''">#{isOut},</if>
|
|
|
<if test="regular != null and regular != ''">#{regular},</if>
|
|
|
<if test="tableColumnName != null and tableColumnName != ''">#{tableColumnName},</if>
|
|
|
+ <if test="seqName != null and seqName != ''">#{seqName},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|
|
@@ -193,6 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isIn != null and isIn != ''">is_in = #{isIn},</if>
|
|
|
<if test="isOut != null and isOut != ''">is_out = #{isOut},</if>
|
|
|
<if test="regular != null and regular != ''">regular = #{regular},</if>
|
|
|
+ <if test="seqName != null and seqName != ''">seq_name = #{seqName},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where id = #{id}
|