View Code? Open in Web Editor
NEW
Update-record is a mybatis plugin. Combined with spring AOP, it records the changes of the specified request / data table before and after modification, and records the modification log to the database。
Home Page: http://geekidea.io/update-record/
License: Apache License 2.0
update-record's People
Watchers
update-record's Issues
某些场景下,UpdateRecord耗时很长,如果支持异步好一些
1、UpdateRecordComparator.compare方法中存在重复设置updateRecordColumnLog.setBeforeVersion(beforeVersionValue)
updateRecordColumnLog..setAfterVersion(afterVersionValue)
2、UpdateRecordAopSupport.save中format参数未用到
3、UpdateRecordComparator.compare方法中,有另外一种做法:
可以将string存放至ArrayList里面,然后再join,这样就不用每个加分隔符,再删掉最后一个分隔符了
4、update_record_log、update_record_table_log、update_record_column_log都是每次变更新增一行数据,那update_time字段意义就不大了
挺好用的,对于小公司来说,为何没有持续更新了呀,优化呀。