1.冀北分布式光伏代码提交
2.审计日志管理代码提交修改 3.暂降推送日志,筛选添加
This commit is contained in:
@@ -8,13 +8,13 @@ import com.njcn.system.mapper.UserLogMapper;
|
||||
import java.util.List;
|
||||
|
||||
// 有个很重要的点 DemoDataListener 不能被spring管理,要每次读取excel都要new,然后里面用到spring可以构造方法传进去
|
||||
public class DemoDataListener implements ReadListener<UserLogExcel> {
|
||||
public class DataListener implements ReadListener<UserLogExcel> {
|
||||
|
||||
|
||||
/**
|
||||
* 每隔5条存储数据库,实际使用中可以100条,然后清理list ,方便内存回收
|
||||
*/
|
||||
private static final int BATCH_COUNT = 5000;
|
||||
private static final int BATCH_COUNT = 1000;
|
||||
/**
|
||||
* 缓存的数据
|
||||
*/
|
||||
@@ -29,7 +29,7 @@ public class DemoDataListener implements ReadListener<UserLogExcel> {
|
||||
*
|
||||
* @param userLogMapper
|
||||
*/
|
||||
public DemoDataListener(UserLogMapper userLogMapper) {
|
||||
public DataListener(UserLogMapper userLogMapper) {
|
||||
this.userLogMapper = userLogMapper;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user