Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
DocumentationGroup
DocumentationBackend
Commits
5ceb5cab
Commit
5ceb5cab
authored
1 year ago
by
Никита Ульяницкий
Browse files
Options
Downloads
Patches
Plain Diff
Добавление связывания в вызов объемов
parent
e33bdd41
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
Выкатка на прод
Pipeline
#653
passed with stage
in 4 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/documentation/volume/controller/VolumeController.java
+7
-0
...com/documentation/volume/controller/VolumeController.java
with
7 additions
and
0 deletions
src/main/java/com/documentation/volume/controller/VolumeController.java
+
7
−
0
View file @
5ceb5cab
...
...
@@ -2,6 +2,7 @@ package com.documentation.volume.controller;
import
com.documentation.volume.DTO.FileExcelDto
;
import
com.documentation.volume.DTO.volume.VolumeGeneralDTO
;
import
com.documentation.volume.service.DisciplineService
;
import
com.documentation.volume.service.VolumeGenerateService
;
import
com.documentation.volume.service.VolumeService
;
import
io.swagger.v3.oas.annotations.Operation
;
...
...
@@ -27,6 +28,8 @@ public class VolumeController {
private
final
VolumeGenerateService
volumeGenerateService
;
private
final
DisciplineService
disciplineService
;
@Operation
(
summary
=
"Получить список c часами по всем дисциплинам"
)
@ApiResponses
(
value
=
{
@ApiResponse
(
responseCode
=
"200"
,
description
=
"список сформирован"
,
...
...
@@ -36,6 +39,8 @@ public class VolumeController {
content
=
@Content
)
})
@GetMapping
(
value
=
"/volume/versions/{versionID}"
)
public
ResponseEntity
<
List
<
VolumeGeneralDTO
>>
read
(
@PathVariable
(
"versionID"
)
Long
id
){
disciplineService
.
connectContingent
(
id
);
final
List
<
VolumeGeneralDTO
>
volumeListDto
=
volumeService
.
read
(
id
);
return
volumeListDto
!=
null
...
...
@@ -51,6 +56,8 @@ public class VolumeController {
content
=
@Content
)
})
@GetMapping
(
value
=
"/volume/toFile/"
)
public
ResponseEntity
<?>
generate
(
@RequestParam
(
"versionID"
)
Long
id
)
throws
IOException
{
disciplineService
.
connectContingent
(
id
);
return
volumeGenerateService
.
generate
(
id
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets