|
|
@@ -1,11 +1,8 @@
|
|
|
package cn.iocoder.yudao.module.system.controller.admin.homepage;
|
|
|
|
|
|
-import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
-import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
-import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.homepage.vo.UiComponentPageReqVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.homepage.vo.UiComponentRespVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.homepage.vo.UiComponentSaveReqVO;
|
|
|
@@ -15,16 +12,13 @@ import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import jakarta.annotation.Resource;
|
|
|
-import jakarta.servlet.http.HttpServletResponse;
|
|
|
import jakarta.validation.Valid;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
import java.util.List;
|
|
|
|
|
|
-import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
|
|
|
@Tag(name = "管理后台 - iscs驾驶舱组件")
|
|
|
@@ -77,17 +71,4 @@ public class UiComponentController {
|
|
|
return success(BeanUtils.toBean(pageResult, UiComponentRespVO.class));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/exportUiComponentExcel")
|
|
|
- @Operation(summary = "导出iscs驾驶舱组件 Excel")
|
|
|
- @PreAuthorize("@ss.hasPermission('sys:ui-component:export')")
|
|
|
- @ApiAccessLog(operateType = EXPORT)
|
|
|
- public void exportUiComponentExcel(@Valid UiComponentPageReqVO pageReqVO,
|
|
|
- HttpServletResponse response) throws IOException {
|
|
|
- pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
|
- List<UiComponentDO> list = uiComponentService.getUiComponentPage(pageReqVO).getList();
|
|
|
- // 导出 Excel
|
|
|
- ExcelUtils.write(response, "iscs驾驶舱组件.xls", "数据", UiComponentRespVO.class,
|
|
|
- BeanUtils.toBean(list, UiComponentRespVO.class));
|
|
|
- }
|
|
|
-
|
|
|
}
|