Commit 06e5e0a6 authored by yanzg's avatar yanzg

Excel导出功能

parent 4ab049b6
......@@ -21,5 +21,13 @@ public class ConfigBase {
/**
* 写入日志对象
*/
public static RunnableLog WriteLog;
private static RunnableLog writeLog;
public static RunnableLog getWriteLog() {
return writeLog;
}
public static void setWriteLog(RunnableLog writeLog) {
ConfigBase.writeLog = writeLog;
}
}
......@@ -7,6 +7,7 @@ import java.util.HashMap;
/**
* 日志操作类
*
* @author 颜佐光
*/
public class Log {
......@@ -96,8 +97,8 @@ public class Log {
date.commit();
info.setTime((long) date.getLastSecond());
info.setTotalTime((long) date.getTotalSecond());
if (ConfigBase.WriteLog != null) {
ConfigBase.WriteLog.run(info);
if (ConfigBase.getWriteLog() != null) {
ConfigBase.getWriteLog().run(info);
} else {
writeLogDefault.run(info);
}
......
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