新增加,导入excel时,数据的验证,采用与controoler层相同的验证方式,在vo里写注解即可
This commit is contained in:
parent
d4930f6a88
commit
40da3e899f
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.ruoyi.common.core.utils.poi;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Excel导入结果
|
||||||
|
* errorList: 验证不通过的错误消息
|
||||||
|
* result: 导入的数据
|
||||||
|
* @author 艾纯禹
|
||||||
|
*/
|
||||||
|
public class ExcelImportResult<T> {
|
||||||
|
private List<String> errorList;
|
||||||
|
|
||||||
|
public List<String> getErrorList() {
|
||||||
|
return errorList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setErrorList(List<String> errorList) {
|
||||||
|
this.errorList = errorList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T> getResult() {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResult(List<T> result) {
|
||||||
|
this.result = result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<T> result;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue