Commit ff2f3ca6 authored by hezhuozhi's avatar hezhuozhi

修复日志删除天数

parent 0c7a7383
...@@ -51,7 +51,7 @@ public class HYGFThirdStationLogServiceImpl implements IHYGFThirdStationLogServi ...@@ -51,7 +51,7 @@ public class HYGFThirdStationLogServiceImpl implements IHYGFThirdStationLogServi
Integer countTable = hygfThirdStationLogMapper.countTable(TABLE_NAME + "%"); Integer countTable = hygfThirdStationLogMapper.countTable(TABLE_NAME + "%");
// 如果表超过7个,删除最旧的表 // 如果表超过7个,删除最旧的表
if (countTable >= reserveDay) { if (countTable > reserveDay) {
String oldestTableName = hygfThirdStationLogMapper.getOldestTableName(TABLE_NAME + "%"); String oldestTableName = hygfThirdStationLogMapper.getOldestTableName(TABLE_NAME + "%");
hygfThirdStationLogMapper.dropTable(oldestTableName); hygfThirdStationLogMapper.dropTable(oldestTableName);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment