!91 feat(excel): 导出模板自动生成示例数据行
* feat(excel): 导出模板自动生成示例数据行 * fix(excel): 字典导入兼容中英文逗号分隔多值,修复BgPartymatter导入Map.of参数错位 * fix(import): Excel导入时注入bpmStatus和delFlag默认值,避免新增记录缺少流程状态
This commit is contained in:
+8
@@ -176,6 +176,14 @@ public class JeecgController<T, S extends IService<T>> {
|
||||
writeExcel(response, clazz, title, Collections.emptyList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出自定义数据(含表头),供子类导出模板示例行
|
||||
*/
|
||||
protected void exportXlsWithData(HttpServletResponse response,
|
||||
Class<T> clazz, String title, List<T> data) throws IOException {
|
||||
writeExcel(response, clazz, title, data);
|
||||
}
|
||||
|
||||
private void writeExcel(HttpServletResponse response, Class<T> clazz,
|
||||
String title, List<T> data) throws IOException {
|
||||
ExcelAnnotationUtils.write(response, clazz, title, data, dictQuery());
|
||||
|
||||
Reference in New Issue
Block a user