Commit 941c5c56 authored by Степан Бабаков's avatar Степан Бабаков
Browse files

подправил вывод спец. дисциплин

parent f6ce4941
Branches
Tags
1 merge request!3Выкатка на прод
Pipeline #563 passed with stage
in 2 minutes and 13 seconds
Showing with 144 additions and 147 deletions
......@@ -38,14 +38,13 @@ public class VolumeController {
public ResponseEntity<List<VolumeGeneralDTO>> read(@PathVariable("versionID") Long id){
final List<VolumeGeneralDTO> volumeListDto = volumeService.read(id);
ResponseEntity<List<VolumeGeneralDTO>> listResponseEntity = volumeListDto != null
return volumeListDto != null
? new ResponseEntity<>((List)volumeListDto, HttpStatus.OK)
: new ResponseEntity<>(HttpStatus.NOT_FOUND);
return listResponseEntity;
}
@Operation(summary = "Получить документ объемы")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "файл сформирован",
@ApiResponse(responseCode = "201", description = "файл сформирован",
content = { @Content(mediaType = "application/json",
schema = @Schema(implementation = FileExcelDto.class)) }),
@ApiResponse(responseCode = "404", description = "файл не сформирован",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment