Commit 39529c12 authored by Lucia Lopuchova's avatar Lucia Lopuchova Committed by cizek
Browse files

Fix after rebase

parent 7f4e2ca2
...@@ -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()));
......
Supports Markdown
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