1.冀北分布式光伏代码提交

2.审计日志管理代码提交修改
3.暂降推送日志,筛选添加
This commit is contained in:
wr
2023-05-26 08:52:00 +08:00
parent 376aab019d
commit c7e063a6ae
29 changed files with 434 additions and 219 deletions

View File

@@ -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;
}