|
|
@@ -43,6 +43,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
+import java.io.IOException;
|
|
|
import java.time.DayOfWeek;
|
|
|
import java.time.Duration;
|
|
|
import java.time.LocalDateTime;
|
|
|
@@ -499,7 +500,7 @@ public class ScheduleController {
|
|
|
@ApiOperation(value = "导出课表")
|
|
|
@SaCheckPermission("schedule:detail")
|
|
|
@XjrLog(value = "导出课表")
|
|
|
- public ResponseEntity<byte[]> exportQuery(@Valid @RequestBody CourseTableExportQueryDto dto) {
|
|
|
+ public ResponseEntity<byte[]> exportQuery(@Valid @RequestBody CourseTableExportQueryDto dto) throws IOException {
|
|
|
ByteArrayOutputStream bot = courseTableService.exportQuery(dto);
|
|
|
return RT.fileStream(bot.toByteArray(), "scheduleWeek" + ExcelTypeEnum.XLSX.getValue());
|
|
|
}
|