weaver-hrm-organization/src/com/engine/organization/wrapper/ExportCommonWrapper.java

32 lines
872 B
Java
Raw Normal View History

2022-06-28 19:04:14 +08:00
package com.engine.organization.wrapper;
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
import com.engine.organization.service.ExportCommonService;
import com.engine.organization.service.impl.ExportCommonServiceImpl;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import weaver.hrm.User;
2022-06-29 15:21:36 +08:00
import java.util.List;
2022-06-28 19:04:14 +08:00
/**
* @Author weaver_cl
* @Description:
* @Date 2022/6/28
* @Version V1.0
**/
public class ExportCommonWrapper extends Service {
public ExportCommonService getExportCommonService(User user) {
2023-03-13 16:54:45 +08:00
return ServiceUtil.getService(ExportCommonServiceImpl.class, user);
2022-06-28 19:04:14 +08:00
}
2022-06-29 15:21:36 +08:00
public XSSFWorkbook resourceExport(List<Long> ids) {
return getExportCommonService(user).resourceExport(ids);
2022-06-28 19:04:14 +08:00
}
2023-03-13 16:54:45 +08:00
public XSSFWorkbook staffExport() {
return getExportCommonService(user).staffExport();
}
2022-06-28 19:04:14 +08:00
}