|
7 | 7 | <result column="table_name" property="tableName"/> |
8 | 8 | <result column="physical_table_description" property="physicalTableDescription"/> |
9 | 9 | <result column="table_description" property="tableDescription"/> |
| 10 | + <result column="data_granularity" property="dataGranularity"/> |
10 | 11 | <result column="domain" property="domain"/> |
11 | 12 | <result column="datasource_id" property="datasourceId"/> |
12 | 13 | <result column="is_visible" property="isVisible"/> |
|
85 | 86 |
|
86 | 87 | <insert id="insert" parameterType="io.github.malonetalk.entity.TableInfo" useGeneratedKeys="true" keyProperty="id"> |
87 | 88 | INSERT INTO table_info ( |
88 | | - table_name, physical_table_description, table_description, domain, datasource_id, |
| 89 | + table_name, physical_table_description, table_description, data_granularity, domain, |
| 90 | + datasource_id, |
89 | 91 | is_visible, physical_status, |
90 | 92 | create_time, update_time |
91 | 93 | ) VALUES ( |
92 | | - #{tableName}, #{physicalTableDescription}, #{tableDescription}, #{domain}, |
93 | | - #{datasourceId}, COALESCE(#{isVisible}, 1), |
| 94 | + #{tableName}, #{physicalTableDescription}, #{tableDescription}, #{dataGranularity}, |
| 95 | + #{domain}, #{datasourceId}, COALESCE(#{isVisible}, 1), |
94 | 96 | COALESCE(#{physicalStatus}, 1), |
95 | 97 | COALESCE(#{createTime}, NOW()), COALESCE(#{updateTime}, NOW()) |
96 | 98 | ) |
|
121 | 123 | <set> |
122 | 124 | <if test="tableName != null">table_name = #{tableName},</if> |
123 | 125 | table_description = #{tableDescription}, |
| 126 | + data_granularity = #{dataGranularity}, |
124 | 127 | domain = #{domain}, |
125 | 128 | <if test="isVisible != null">is_visible = #{isVisible},</if> |
126 | 129 | <if test="updateTime != null">update_time = #{updateTime},</if> |
|
0 commit comments