Skip to content
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

판매자 대쉬보드 Top 조회 쿼리 작성 #55

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

kangeunku
Copy link
Collaborator

✨ 과제 내용

  • 판매량 Top5 조회 쿼리 작성
  • 상품 삭제 파라미터 변경

📸 스크린샷

<select id="getTop5Product" parameterType="com.hyundai.domain.manager.dto.ManagerTop5ProductDTO"> <![CDATA[ SELECT op.product_id AS productId, op.total_sum AS sum, p.product_name AS productName, p.product_sub_name AS productSubName, p.price AS price, p.stock AS stock, p.THUMBNAIL_IMAGE_URL AS thumbnailImageUrl FROM ( SELECT top.product_id, SUM(top.ORDER_PRODUCT_COUNT) AS total_sum FROM TBL_ORDERPRODUCT top JOIN tbl_product tp ON top.product_id = tp.product_id JOIN tbl_store ts ON tp.store_id = ts.store_id WHERE tp.deleted_at IS NULL AND ts.member_id = #{memberId} GROUP BY top.product_id ORDER BY total_sum DESC ) op JOIN tbl_product p ON op.product_id = p.product_id WHERE ROWNUM <= 5 ]]> </select>

스크린샷을 못올려서 죄송합니다ㅠㅠ

@kangeunku kangeunku added feature New feature 🥇 은구 eunku pr labels Mar 6, 2024
@kangeunku kangeunku self-assigned this Mar 6, 2024
Copy link
Member

@thals0 thals0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿

@skybluelion
Copy link
Member

굿

ㅠ...

@skybluelion skybluelion merged commit af8d895 into dev Mar 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature 🥇 은구 eunku pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants