#I2CIHA商品规格-佣金单独设置 规格展示内容不全

This commit is contained in:
xuwenbo
2021-02-20 10:33:12 +08:00
parent 29fb2db6bb
commit df0aae91eb
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ import java.util.Map;
@Setter
public class ProductFormatDto {
private String sku = "";
@JsonProperty("bar_code")
private String barCode = "";

View File

@ -656,6 +656,7 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
//
// private Integer seckillStock;
valueMap.put("detail", detail);
valueMap.put("sku", "");
valueMap.put("pic", "");
valueMap.put("price", 0);
valueMap.put("cost", 0);
@ -677,6 +678,7 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
.eq(YxStoreProductAttrValue::getProductId, id)
.eq(YxStoreProductAttrValue::getSku, sku));
if (storeProductAttrValue != null) {
valueMap.put("sku",storeProductAttrValue.getSku());
valueMap.put("pic", storeProductAttrValue.getImage());
valueMap.put("price", storeProductAttrValue.getPrice());
valueMap.put("cost", storeProductAttrValue.getCost());