-
Notifications
You must be signed in to change notification settings - Fork 0
recommendations #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
EugeneLenkevich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Привет, Вячеслав! Спасибо за PR.
Интересная, конечно, работа, в целом все ок, предложу попробовать типизировать результат запроса (сложить в dto)
List<Object[]> averageResult
но не настаиваю, если времени нет то шли обратно как есть :)
| FROM max_weights m | ||
| GROUP BY m.event_id | ||
| """) | ||
| List<Object[]> findWeightSumListByEventIdList( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Object[]
А зачем кстати массив, не получиться ли в DTO сложить результат?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я посмотрел, и, конечно, лучше использовать DTO, но мне, если честно, уже лень. Я сейчас не на основном компьютере и тут докер не очень корректно работает. Сложно тестировать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще, ты крутой, хорошие работы, интересно проверять
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо за ревью и хорошие советы. Было приятно с вами взаимодействовать
EugeneLenkevich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Привет, ок, пусть будет так :)
No description provided.