HC小区文档

数据备份前日志表清理

数据建议每天做一次备份,以防磁盘损坏导致数据丢失,造成损失,但是备份时数据量太大,所以需要做一些数据清理;

1.0 HC小区管理系统 清理

下面是关于小区系统的一些数据清理

1.1 常见日志表

transaction_log: 接口交互表
truncate table transaction_log;

transaction_log_message 接口交互表报文:
truncate table transaction_log_message;

transaction_out_log 调用外系统交互表
truncate table transaction_out_log;

log_system_error 系统错误记录表
truncate table log_system_error;

1.2 业务受理痕迹表

unitem_log;
truncate table  unitem_log;

1.3 报表中间表

报表中间表根据基础数据,靠挺定时任务重新生成,可以清理

pay_fee_detail_month;
truncate table pay_fee_detail_month;

report_owe_fee;
truncate table report_owe_fee;

report_fee_year_collection:
truncate table report_fee_year_collection;

report_fee_year_collection_detail:
truncate table report_fee_year_collection_detail;

2.0 HC物联网管理系统 清理

下面是关于物联网系统的一些数据清理

2.2 业务受理痕迹表

unitem_log;
truncate table  unitem_log;