@@ -176,22 +176,36 @@ public class Account implements Serializable {
176
176
177
177
#### 1. update_record_log 某个请求的修改日志记录
178
178
179
- | id | commit\_ id | user\_ id | user\_ name | name | ip | area | path | url | server\_ name | module\_ name | package\_ name | class\_ name | method\_ name | request\_ method | token | thread\_ name | before\_ all\_ value | after\_ all\_ value | diff\_ all\_ value | update\_ all\_ desc | table\_ total | column\_ total | add\_ model\_ total | update\_ model\_ total | delete\_ model\_ total | remark | version | create\_ time | update\_ time |
180
- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
181
- | 98486541914996744 | 73bde3352ce14d0b8252ac303c2becc4 | 1 | admin | 支付 | 127.0.0.1 | 上海 | http://localhost:9000/account/pay | /account/pay | spring-boot-mybatis-sample | user | io.geekidea.updaterecord.samples.controller | AccountController | pay | GET | NULL | http-nio-9000-exec-6 | \[ {"balance":"856.00","update\_ time":"2019-12-02 20:48:39","version":154}\] | \[ {"balance":"855.00","update\_ time":"2019-12-02 20:49:04","version":154}\] | {"table-0-tb\_ account-id-1":\[ {"name":"balance","before":"856.00","after":"855.00","mode":2},{"name":"update\_ time","before":"2019-12-02 20:48:39","after":"2019-12-02 20:49:04","mode":2}\] } | 余额 由 856.00 修改为 855.00<br />update\_ time 由 2019-12-02 20:48:39 修改为 2019-12-02 20:49:04 | 1 | 2 | 0 | 2 | 0 | update... | v1.0 | 2019-12-02 20:49:05 | NULL |
179
+ ``` text
180
+ mysql> select * from update_record_log;
181
+ +-------------------+----------------------------------+---------+-----------+--------+-----------+--------+-----------------------------------+--------------+----------------------------+-------------+---------------------------------------------+-------------------+-------------+----------------+-------+----------------------+-------------------------------------------------------------------------+------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-------------+--------------+-----------------+--------------------+--------------------+-----------+---------+---------------------+-------------+
182
+ | id | commit_id | user_id | user_name | name | ip | area | path | url | server_name | module_name | package_name | class_name | method_name | request_method | token | thread_name | before_all_value | after_all_value | diff_all_value | update_all_desc | table_total | column_total | add_model_total | update_model_total | delete_model_total | remark | version | create_time | update_time |
183
+ +-------------------+----------------------------------+---------+-----------+--------+-----------+--------+-----------------------------------+--------------+----------------------------+-------------+---------------------------------------------+-------------------+-------------+----------------+-------+----------------------+-------------------------------------------------------------------------+------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-------------+--------------+-----------------+--------------------+--------------------+-----------+---------+---------------------+-------------+
184
+ | 98486541914996748 | faff46eb3fc442f1bd4649b33cb01e54 | 1 | admin | 支付 | 127.0.0.1 | 上海 | http://localhost:9000/account/pay | /account/pay | spring-boot-mybatis-sample | user | io.geekidea.updaterecord.samples.controller | AccountController | pay | GET | NULL | http-nio-9000-exec-1 | [{"balance":"1000.00","update_time":"2019-12-02 20:49:05","version":1}] | [{"balance":"999.00","update_time":"2019-12-03 00:26:26","version":1}] | {"table-0-tb_account-id-1":[{"name":"balance","before":"1000.00","after":"999.00","mode":2},{"name":"update_time","before":"2019-12-02 20:49:05","after":"2019-12-03 00:26:26","mode":2}]} | 余额 由 1000.00 修改为 999.00 update_time 由 2019-12-02 20:49:05 修改为 2019-12-03 00:26:26 | 1 | 2 | 0 | 2 | 0 | update... | v1.0 | 2019-12-03 00:26:27 | NULL |
185
+ +-------------------+----------------------------------+---------+-----------+--------+-----------+--------+-----------------------------------+--------------+----------------------------+-------------+---------------------------------------------+-------------------+-------------+----------------+-------+----------------------+-------------------------------------------------------------------------+------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-------------+--------------+-----------------+--------------------+--------------------+-----------+---------+---------------------+-------------+
186
+ 1 row in set (0.01 sec)
187
+ ```
182
188
183
189
#### 2. update_record_table_log 请求对应的表修改记录
184
190
185
- | id | commit\_ id | server\_ name | module\_ name | method\_ id | table\_ name | table\_ desc | entity\_ name | id\_ column\_ name | id\_ property\_ name | id\_ value | before\_ value | after\_ value | diff\_ value | before\_ version | after\_ version | update\_ desc | total | add\_ mode\_ count | update\_ mode\_ count | delete\_ mode\_ count | remark | version | create\_ time | update\_ time |
186
- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
187
- | 98486541914996745 | 73bde3352ce14d0b8252ac303c2becc4 | spring-boot-mybatis-sample | user | io.geekidea.updaterecord.samples.mapper.AccountMapper.updateById | tb\_ account | 账户 | Account | id | id | 1 | {"balance":"856.00","update\_ time":"2019-12-02 20:48:39","version":154} | {"balance":"855.00","update\_ time":"2019-12-02 20:49:04","version":154} | \[ {"name":"balance","before":"856.00","after":"855.00","mode":2},{"name":"update\_ time","before":"2019-12-02 20:48:39","after":"2019-12-02 20:49:04","mode":2}\] | 154 | 155 | 余额 由 856.00 修改为 855.00<br />update\_ time 由 2019-12-02 20:48:39 修改为 2019-12-02 20:49:04 | 2 | 0 | 2 | 0 | NULL | v1.0 | 2019-12-02 20:49:05 | NULL |
188
-
191
+ ``` text
192
+ mysql> select * from update_record_table_log;
193
+ +-------------------+----------------------------------+----------------------------+-------------+------------------------------------------------------------------+------------+------------+-------------+----------------+------------------+----------+-----------------------------------------------------------------------+----------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------+---------------+-------------------------------------------------------------------------------------------------------+-------+----------------+-------------------+-------------------+--------+---------+---------------------+-------------+
194
+ | id | commit_id | server_name | module_name | method_id | table_name | table_desc | entity_name | id_column_name | id_property_name | id_value | before_value | after_value | diff_value | before_version | after_version | update_desc | total | add_mode_count | update_mode_count | delete_mode_count | remark | version | create_time | update_time |
195
+ +-------------------+----------------------------------+----------------------------+-------------+------------------------------------------------------------------+------------+------------+-------------+----------------+------------------+----------+-----------------------------------------------------------------------+----------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------+---------------+-------------------------------------------------------------------------------------------------------+-------+----------------+-------------------+-------------------+--------+---------+---------------------+-------------+
196
+ | 98486541914996749 | faff46eb3fc442f1bd4649b33cb01e54 | spring-boot-mybatis-sample | user | io.geekidea.updaterecord.samples.mapper.AccountMapper.updateById | tb_account | 账户 | Account | id | id | 1 | {"balance":"1000.00","update_time":"2019-12-02 20:49:05","version":1} | {"balance":"999.00","update_time":"2019-12-03 00:26:26","version":1} | [{"name":"balance","before":"1000.00","after":"999.00","mode":2},{"name":"update_time","before":"2019-12-02 20:49:05","after":"2019-12-03 00:26:26","mode":2}] | 1 | 2 | 余额 由 1000.00 修改为 999.00 update_time 由 2019-12-02 20:49:05 修改为 2019-12-03 00:26:26 | 2 | 0 | 2 | 0 | NULL | v1.0 | 2019-12-03 00:26:27 | NULL |
197
+ +-------------------+----------------------------------+----------------------------+-------------+------------------------------------------------------------------+------------+------------+-------------+----------------+------------------+----------+-----------------------------------------------------------------------+----------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------+---------------+-------------------------------------------------------------------------------------------------------+-------+----------------+-------------------+-------------------+--------+---------+---------------------+-------------+
198
+ 1 row in set (0.01 sec)
199
+ ```
189
200
#### 3. update_record_column_log 请求对应的表中的列修改记录
190
-
191
- | id | commit\_ id | table\_ name | id\_ value | column\_ name | column\_ desc | before\_ value | after\_ value | mode | before\_ version | after\_ version | remark | version | create\_ time | update\_ time |
192
- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
193
- | 98486541914996746 | 73bde3352ce14d0b8252ac303c2becc4 | tb\_ account | 1 | balance | 余额 | 856.00 | 855.00 | 2 | 154 | 155 | NULL | v1.0 | 2019-12-02 20:49:05 | NULL |
194
- | 98486541914996747 | 73bde3352ce14d0b8252ac303c2becc4 | tb\_ account | 1 | update\_ time | update\_ time | 2019-12-02 20:48:39 | 2019-12-02 20:49:04 | 2 | 154 | 155 | NULL | v1.0 | 2019-12-02 20:49:05 | NULL |
195
-
196
-
201
+ ``` text
202
+ mysql> select * from update_record_column_log;
203
+ +-------------------+----------------------------------+------------+----------+-------------+-------------+---------------------+---------------------+------+----------------+---------------+--------+---------+---------------------+-------------+
204
+ | id | commit_id | table_name | id_value | column_name | column_desc | before_value | after_value | mode | before_version | after_version | remark | version | create_time | update_time |
205
+ +-------------------+----------------------------------+------------+----------+-------------+-------------+---------------------+---------------------+------+----------------+---------------+--------+---------+---------------------+-------------+
206
+ | 98486541914996750 | faff46eb3fc442f1bd4649b33cb01e54 | tb_account | 1 | balance | 余额 | 1000.00 | 999.00 | 2 | 1 | 2 | NULL | v1.0 | 2019-12-03 00:26:27 | NULL |
207
+ | 98486541914996751 | faff46eb3fc442f1bd4649b33cb01e54 | tb_account | 1 | update_time | update_time | 2019-12-02 20:49:05 | 2019-12-03 00:26:26 | 2 | 1 | 2 | NULL | v1.0 | 2019-12-03 00:26:27 | NULL |
208
+ +-------------------+----------------------------------+------------+----------+-------------+-------------+---------------------+---------------------+------+----------------+---------------+--------+---------+---------------------+-------------+
209
+ 2 rows in set (0.00 sec)
210
+ ```
197
211
0 commit comments