20250410 字段调整
This commit is contained in:
parent
5b2537cedc
commit
d3c86bfbdf
@ -54,6 +54,9 @@ public class ShopController {
|
|||||||
shopProductInfo.setSpuPrice(shopProduct.getShopPrice());
|
shopProductInfo.setSpuPrice(shopProduct.getShopPrice());
|
||||||
ProductSpu productSpu = productSpuMapper.selectById(shopProduct.getShopSpu());
|
ProductSpu productSpu = productSpuMapper.selectById(shopProduct.getShopSpu());
|
||||||
shopProductInfo.setProductName(productSpu.getSpuName());
|
shopProductInfo.setProductName(productSpu.getSpuName());
|
||||||
|
shopProductInfo.setSalesCount(productSpu.getSpuSalesCount());
|
||||||
|
shopProductInfo.setScore(productSpu.getSpuScore());
|
||||||
|
shopProductInfo.setScoreTwo(productSpu.getSpuScoreTwo());
|
||||||
List<Long> skus = shopProductMapper.skusByShopAndSpu(shopProduct.getShopId(), shopProduct.getShopSpu());
|
List<Long> skus = shopProductMapper.skusByShopAndSpu(shopProduct.getShopId(), shopProduct.getShopSpu());
|
||||||
String shopSku = JSONUtil.toJsonStr(skus);
|
String shopSku = JSONUtil.toJsonStr(skus);
|
||||||
shopProductInfo.setSkus(shopSku);
|
shopProductInfo.setSkus(shopSku);
|
||||||
|
@ -35,4 +35,7 @@ public class ProductSpu implements Serializable {
|
|||||||
|
|
||||||
@TableField("spu_score")
|
@TableField("spu_score")
|
||||||
private BigDecimal spuScore;
|
private BigDecimal spuScore;
|
||||||
|
|
||||||
|
@TableField("spu_score_tow")
|
||||||
|
private BigDecimal spuScoreTwo;
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,9 @@ public class ShopProductInfo {
|
|||||||
private Integer salesCount;
|
private Integer salesCount;
|
||||||
|
|
||||||
@Field(type = FieldType.Double)
|
@Field(type = FieldType.Double)
|
||||||
private String score;
|
private BigDecimal score;
|
||||||
|
|
||||||
|
@Field(type = FieldType.Double)
|
||||||
|
private BigDecimal scoreTwo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user