@Transactional(propagation = Propagation.REQUIRES_NEW)
@Transactional(propagation = Propagation.REQUIRES_NEW)
public BigDecimal getCurrentUserBonus(UserEntity user) {
final Page<UserProfileDto> map = filtered.map(user -> {
UserEntity user2 = userService.fetchAllEagersUser(user);
BigDecimal currentUserBonus = userService.getCurrentUserBonus(user2);
user2.setCurrentBonusBalance(currentUserBonus);// it's async!!!!!!!!!!!
return new UserProfileDto(user2);
});
Комментарии
Отправить комментарий