缺少文件提交
This commit is contained in:
parent
9a663001a5
commit
7e596dfe89
@ -0,0 +1,31 @@
|
||||
package com.chanko.yunxi.mes.module.heli.service.projectorder.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* 导出配置
|
||||
*
|
||||
* @author 管理员
|
||||
*/
|
||||
@Data
|
||||
public class ExportConfig {
|
||||
private final Supplier<Object> dataSupplier;
|
||||
private final String fileName;
|
||||
private final Class<?> voClass;
|
||||
private final FieldProcessor processor;
|
||||
|
||||
public ExportConfig(Supplier<Object> dataSupplier, String fileName, Class<?> voClass, FieldProcessor processor) {
|
||||
this.dataSupplier = dataSupplier;
|
||||
this.fileName = fileName;
|
||||
this.voClass = voClass;
|
||||
this.processor = processor;
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface FieldProcessor {
|
||||
void process(List<?> list);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.chanko.yunxi.mes.module.heli.service.projectorder.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 导出结果DTO
|
||||
*
|
||||
* @author 管理员
|
||||
*/
|
||||
@Data
|
||||
public class ExportResult {
|
||||
/**
|
||||
* 文件名
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* Sheet名称
|
||||
*/
|
||||
private String sheetName;
|
||||
|
||||
/**
|
||||
* VO类
|
||||
*/
|
||||
private Class<?> voClass;
|
||||
|
||||
/**
|
||||
* 数据列表
|
||||
*/
|
||||
private Object dataList;
|
||||
|
||||
public ExportResult(String fileName, String sheetName, Class<?> voClass, Object dataList) {
|
||||
this.fileName = fileName;
|
||||
this.sheetName = sheetName;
|
||||
this.voClass = voClass;
|
||||
this.dataList = dataList;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user