|
@@ -37,10 +37,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="extendedAttributes" column="extended_attributes" />
|
|
|
<result property="isIn" column="is_in" />
|
|
|
<result property="isOut" column="is_out" />
|
|
|
+ <result property="regular" column="regular" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectGenTableColumnVo">
|
|
|
- select column_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 from gen_table_column
|
|
|
+ select column_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 from gen_table_column
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectGenTableColumnListByTableId" parameterType="GenTableColumn" resultMap="GenTableColumnResult">
|
|
@@ -115,6 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="extendedAttributes != null and extendedAttributes != ''">extended_attributes,</if>
|
|
|
<if test="isIn != null and isIn != ''">is_in,</if>
|
|
|
<if test="isOut != null and isOut != ''">is_out,</if>
|
|
|
+ <if test="regular != null and regular != ''">regular,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="tableId != null and tableId != ''">#{tableId},</if>
|
|
@@ -145,6 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="extendedAttributes != null and extendedAttributes != ''">#{extendedAttributes},</if>
|
|
|
<if test="isIn != null and isIn != ''">#{isIn},</if>
|
|
|
<if test="isOut != null and isOut != ''">#{isOut},</if>
|
|
|
+ <if test="regular != null and regular != ''">#{regular},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|
|
@@ -181,6 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="extendedAttributes != null and extendedAttributes != ''">extended_attributes = #{extendedAttributes},</if>
|
|
|
<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>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where column_id = #{columnId}
|