fix 项目列表导出
This commit is contained in:
parent
6b11047fc7
commit
cfd807e0f6
|
|
@ -1,10 +1,11 @@
|
|||
package com.chushang.inspection.project.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class ProjectExportVO implements java.io.Serializable{
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class WrkProjectController {
|
|||
* 获取项目列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
// @RequiresPermissions("inspection:project:list")
|
||||
@RequiresPermissions("inspection:project:list")
|
||||
public AjaxResult list(WrkProject project)
|
||||
{
|
||||
CommonParam commonParam = CommonParam.buildPageRequest();
|
||||
|
|
@ -189,7 +189,7 @@ public class WrkProjectController {
|
|||
|
||||
/**
|
||||
* 项目数据导出
|
||||
* @param projectQuery 查询条件
|
||||
* @param
|
||||
*/
|
||||
// @SysLog(value = "项目数据", businessType = BusinessType.EXPORT)
|
||||
// @GetMapping(value = "/project/data/export")
|
||||
|
|
@ -201,10 +201,20 @@ public class WrkProjectController {
|
|||
|
||||
@SysLog(value = "项目数据", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/project/data/export")
|
||||
// @RequiresPermissions("inspection:project:export")
|
||||
@RequiresPermissions("inspection:project:export")
|
||||
public void projectDataExport(HttpServletResponse response, ProjectQuery query) {
|
||||
// 派单领取列表, 就是 已经派出的工单以及领取的工单,
|
||||
projectService.exportDispatchPage(response,query);
|
||||
|
||||
|
||||
try {
|
||||
log.info("开始导出项目数据。查询参数: {}", query);
|
||||
|
||||
projectService.exportDispatchPage(response, query);
|
||||
log.info("项目数据导出成功。");
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("导出项目数据时发生错误", e);
|
||||
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue