导出评估申请表格
This commit is contained in:
@@ -6,6 +6,7 @@ import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
@@ -107,4 +108,18 @@ public class LbAssessmentApplyController {
|
||||
return ResponseEntity.internalServerError().body(result);
|
||||
}
|
||||
|
||||
@GetMapping("/export")
|
||||
@Operation(summary = "导出申请评估Excel", description = "按租户ID与申请日期时间范围导出申请评估列表")
|
||||
public void export(
|
||||
@Parameter(description = "租户ID", required = true) @RequestParam String tenantId,
|
||||
@Parameter(description = "申请开始时间,格式:yyyy-MM-dd HH:mm:ss", required = true)
|
||||
@RequestParam String applicationDatetimeStart,
|
||||
@Parameter(description = "申请结束时间,格式:yyyy-MM-dd HH:mm:ss", required = true)
|
||||
@RequestParam String applicationDatetimeEnd,
|
||||
HttpServletResponse response) {
|
||||
lbAssessmentApplyService.exportExcel(
|
||||
tenantId, applicationDatetimeStart, applicationDatetimeEnd, response
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user