Skip to content

Commit

Permalink
[#24] chore: 리포지토리 코드 줄바꿈 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdqls1200 committed Jun 27, 2023
1 parent 89562bf commit b683628
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public List<Product> findProductsBy(final String category) {
+ " AND DATE(sl.sales_at) = CURDATE()"
+ " GROUP BY p.id"
+ " ORDER BY total_quantity desc";

SqlParameterSource params = new MapSqlParameterSource("name", category);

return jdbcTemplate.query(sql, params,
(rs, rowNum) -> new Product(
rs.getLong("id"),
Expand Down

0 comments on commit b683628

Please sign in to comment.