收音机 / 客户端 商品列表

This commit is contained in:
2026-04-09 16:54:57 +08:00
parent caec6b2d0f
commit 3448331b31
4 changed files with 32 additions and 78 deletions

View File

@@ -5,6 +5,7 @@ import cn.hutool.core.convert.Convert;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.annotation.JSONField;
import com.czg.product.entity.ProdConsRelation;
import com.czg.product.vo.ProductGroupVo;
import com.czg.validator.group.DefaultGroup;
import com.czg.validator.group.InsertGroup;
@@ -217,6 +218,8 @@ public class ProductDTO implements Serializable {
* 商品关联耗材列表
*/
private List<ProdConsRelationDTO> consList;
//
private List<ProdConsRelation> prodConsRelations;
/**
* 耗材信息
*/
@@ -240,13 +243,6 @@ public class ProductDTO implements Serializable {
return JSON.parseArray(Convert.toStr(images, "[]"));
}
/**
* {"口味":[{"甜度":["少甜","中甜","多甜"]},{"辣度":["微辣","重辣","变态辣"]},{"小料":["葱花","香菜","折耳根"]}]}
*/
public Object getSelectSpecInfo() {
return JSON.parseObject(Convert.toStr(selectSpecInfo, "{}"));
}
public Object getGroupSnap() {
return JSON.parseArray(Convert.toStr(groupSnap, "[]"));
}

View File

@@ -38,10 +38,11 @@ public interface ProductService extends IService<Product> {
/**
* 从缓存里面获取商品列表
*
* @param param 查询参数
* @param shopId 店铺ID
* @param categoryId 商品分类ID
* @return 商品列表数据
*/
List<ProductDTO> getProductCacheList(ProductDTO param);
List<ProductDTO> getProductCacheList(Long shopId, Long categoryId);
/**
* 清除某个商品分类的缓存