解决宿州导出问题服务器没有字体
parent
d02dca81c0
commit
3d59d61a04
|
|
@ -87,6 +87,7 @@ public class ExcelUtil {
|
|||
ServletOutputStream os = response.getOutputStream();
|
||||
exportExcel(list, sheetName, clazz, false, os, null);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException("导出Excel异常");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import lombok.RequiredArgsConstructor;
|
|||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.excel.core.ExcelResult;
|
||||
import org.dromara.system.domain.vo.SysUserImportVo;
|
||||
import org.dromara.system.domain.vo.TDeviceExportVo;
|
||||
|
|
@ -44,6 +45,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/device")
|
||||
@Slf4j
|
||||
public class TDeviceController extends BaseController {
|
||||
|
||||
private final ITDeviceService tDeviceService;
|
||||
|
|
@ -76,6 +78,7 @@ public class TDeviceController extends BaseController {
|
|||
@PostMapping("/export")
|
||||
public void export(TDeviceBo bo, HttpServletResponse response) {
|
||||
List<TDeviceExportVo> list = tDeviceService.selectDeviceExportList(bo);
|
||||
log.info("进入了导出方法");
|
||||
ExcelUtil.exportExcel(list, "device", TDeviceExportVo.class, response);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue