商品模块代码提交

This commit is contained in:
Tankaikai 2025-02-20 09:24:33 +08:00
parent 70e9199b4e
commit fb1cc90ef7
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,10 @@ public class ShopProductVo implements Serializable {
* 商品名称
*/
private String name;
/**
* sku id
*/
private Long skuId;
/**
* 原价
*/

View File

@ -6,6 +6,7 @@
select t1.id,
t1.name,
t1.short_title,
t2.sku_id,
t2.origin_price,
t2.sale_price,
t2.member_price,
@ -23,6 +24,7 @@
t1.select_spec_info
from tb_product t1
left join (select x.product_id,
x.id as sku_id,
MIN(x.sale_price) as sale_price,
x.origin_price,
x.member_price,