Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Michal Čížek
flea-market-manager
Commits
39529c12
Commit
39529c12
authored
May 18, 2022
by
Lucia Lopuchova
Committed by
cizek
May 18, 2022
Browse files
Fix after rebase
parent
7f4e2ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/flea-market-manager-service/src/main/java/cz/fi/muni/pa165/flea/market/manager/service/StandService.java
View file @
39529c12
...
@@ -93,8 +93,11 @@ public class StandService extends DomainServiceImpl<Stand> {
...
@@ -93,8 +93,11 @@ public class StandService extends DomainServiceImpl<Stand> {
.
map
(
ItemCategory:
:
valueOf
)
.
map
(
ItemCategory:
:
valueOf
)
.
collect
(
Collectors
.
toSet
()));
.
collect
(
Collectors
.
toSet
()));
Optional
.
of
(
standUpdateDTO
.
getSeller
())
if
(
standUpdateDTO
.
getSeller
()
!=
null
)
{
.
ifPresent
(
seller
->
stand
.
setSeller
(
userService
.
findById
(
seller
.
getId
())));
stand
.
setSeller
(
userService
.
findById
(
standUpdateDTO
.
getSeller
().
getId
()));
}
else
{
stand
.
setSeller
(
null
);
}
stand
.
setStandType
(
standTypeServiceService
.
findById
(
standUpdateDTO
.
getStandType
().
getId
()));
stand
.
setStandType
(
standTypeServiceService
.
findById
(
standUpdateDTO
.
getStandType
().
getId
()));
stand
.
setEvent
(
marketEventDao
.
findById
(
standUpdateDTO
.
getEventId
()));
stand
.
setEvent
(
marketEventDao
.
findById
(
standUpdateDTO
.
getEventId
()));
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment