yangys
2024-10-30 25db770e621f1259b8d5b7fd514207f7481c2d0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.qianwen.smartman.modules.system.excel;
 
import java.util.List;
import com.qianwen.core.excel.support.ExcelImporter;
import com.qianwen.smartman.modules.system.service.IUserService;
 
 
public class UserImporter implements ExcelImporter<UserExcel> {
    private final IUserService service;
    private final Boolean isCovered;
 
    public UserImporter(final IUserService service, final Boolean isCovered) {
        this.service = service;
        this.isCovered = isCovered;
    }
 
    public void save(List<UserExcel> data) {
        this.service.importUser(data, this.isCovered);
    }
}