处理问题
This commit is contained in:
parent
0aa4514d84
commit
0dbcce991d
@ -39,7 +39,7 @@ public abstract class AbstractErrorExcelHandler<T> {
|
||||
errorExcelPathFileFolder.mkdirs();
|
||||
}
|
||||
// 文件名
|
||||
String fileName = String.format("%s.xls", UUIDUtil.get32UUID());
|
||||
String fileName = String.format("%s.xlsx", UUIDUtil.get32UUID());
|
||||
// 表格头
|
||||
File file = new File(String.format("%s/%s", errorExcelPath, fileName));
|
||||
EasyExcel.write(file).sheet("错误清单").head(excelHeaderNames()).doWrite(excelErrors);
|
||||
|
@ -541,6 +541,9 @@ public class DepartmentServiceImpl extends DefaultBaseService implements IDepart
|
||||
|
||||
@Override
|
||||
public List<DepartmentPO> listPOByNames(List<String> departmentNames) {
|
||||
if (departmentNames == null || departmentNames.isEmpty()) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
Map<String, Object> params = getHashMap(2);
|
||||
params.put("departmentNames", departmentNames);
|
||||
return listPO(params);
|
||||
|
Loading…
Reference in New Issue
Block a user