Commit 4e65a243 by 林冲

modify: 新增柠檬查报告查询

1 parent 9bc1749b
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.checkreport;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 新增查询任务响应DTO
*
* @author auto-generated
*/
@Data
@Schema(description = "新增查询任务响应DTO")
public class CheckReportCreateResDTO {
/**
* 报告ID
*/
@Schema(description = "报告ID")
private Long id;
/**
* 任务状态
*/
@Schema(description = "任务状态")
private Integer status;
/**
* 报告url
*/
@Schema(description = "报告url")
private String reportUrl;
}
...@@ -31,6 +31,12 @@ public class CheckReportPageResDTO { ...@@ -31,6 +31,12 @@ public class CheckReportPageResDTO {
* 报告类型:0-事故报告,1-维保报告 * 报告类型:0-事故报告,1-维保报告
*/ */
@Schema(description = "报告类型") @Schema(description = "报告类型")
private Integer reportType;
/**
* 报告类型:0-事故报告,1-维保报告
*/
@Schema(description = "报告类型名称")
private String reportTypeName; private String reportTypeName;
/** /**
...@@ -43,6 +49,12 @@ public class CheckReportPageResDTO { ...@@ -43,6 +49,12 @@ public class CheckReportPageResDTO {
* 报告状态:0-生成中,1-生成成功,2-生成失败 * 报告状态:0-生成中,1-生成成功,2-生成失败
*/ */
@Schema(description = "报告状态") @Schema(description = "报告状态")
private Integer status;
/**
* 报告状态:0-生成中,1-生成成功,2-生成失败
*/
@Schema(description = "报告状态名称")
private String statusName; private String statusName;
/** /**
...@@ -65,6 +77,13 @@ public class CheckReportPageResDTO { ...@@ -65,6 +77,13 @@ public class CheckReportPageResDTO {
private Date queryTime; private Date queryTime;
/** /**
* 获取报告时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "获取报告时间")
private Date acquireTime;
/**
* 报告url * 报告url
*/ */
@Schema(description = "报告url") @Schema(description = "报告url")
......
...@@ -2,6 +2,7 @@ package com.gsc4cloud.gsc.vpc.api.feign.checkreport; ...@@ -2,6 +2,7 @@ package com.gsc4cloud.gsc.vpc.api.feign.checkreport;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gsc4cloud.gsc.common.core.util.R; import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.checkreport.CheckReportCreateResDTO;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.checkreport.CheckReportDetailResDTO; import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.checkreport.CheckReportDetailResDTO;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.checkreport.CheckReportPageResDTO; import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.checkreport.CheckReportPageResDTO;
import com.gsc4cloud.gsc.vpc.api.req.PageRequest; import com.gsc4cloud.gsc.vpc.api.req.PageRequest;
...@@ -37,7 +38,7 @@ public interface CheckReportRemote { ...@@ -37,7 +38,7 @@ public interface CheckReportRemote {
* 新增查询任务 * 新增查询任务
*/ */
@PostMapping("/checkReport/create") @PostMapping("/checkReport/create")
R<Long> create(@RequestBody CheckReportCreateRequest request); R<CheckReportCreateResDTO> create(@RequestBody CheckReportCreateRequest request);
/** /**
* 导出报告(根据ID列表) * 导出报告(根据ID列表)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!