Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ 과제 내용
📸 스크린샷
<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>
스크린샷을 못올려서 죄송합니다ㅠㅠ