订单详情 携带 分类Id

This commit is contained in:
2025-03-07 18:29:12 +08:00
parent ae0a0e5145
commit 42f8338266
10 changed files with 104 additions and 5 deletions

View File

@@ -22,4 +22,10 @@
now(), now())
</foreach>
</insert>
<select id="getOrderDetailPrint" resultType="com.czg.order.vo.OrderDetailPrintVo">
select detail.*, product.category_id as categoryId
from tb_order_detail detail
left join tb_product product on product.id = detail.product_id
where order_id = #{orderId}
</select>
</mapper>