Skip to content

Commit 8b1cabb

Browse files
author
geekideaio
committed
README.md
1 parent a04ea05 commit 8b1cabb

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

README.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,22 +176,36 @@ public class Account implements Serializable {
176176

177177
#### 1. update_record_log 某个请求的修改日志记录
178178

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+
```
182188

183189
#### 2. update_record_table_log 请求对应的表修改记录
184190

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+
```
189200
#### 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+
```
197211

0 commit comments

Comments
 (0)