20250410 字段调整

This commit is contained in:
liangjinglin 2025-04-13 23:10:45 +08:00
parent 5b2537cedc
commit d3c86bfbdf
3 changed files with 10 additions and 1 deletions

View File

@ -54,6 +54,9 @@ public class ShopController {
shopProductInfo.setSpuPrice(shopProduct.getShopPrice());
ProductSpu productSpu = productSpuMapper.selectById(shopProduct.getShopSpu());
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());
String shopSku = JSONUtil.toJsonStr(skus);
shopProductInfo.setSkus(shopSku);

View File

@ -35,4 +35,7 @@ public class ProductSpu implements Serializable {
@TableField("spu_score")
private BigDecimal spuScore;
@TableField("spu_score_tow")
private BigDecimal spuScoreTwo;
}

View File

@ -43,6 +43,9 @@ public class ShopProductInfo {
private Integer salesCount;
@Field(type = FieldType.Double)
private String score;
private BigDecimal score;
@Field(type = FieldType.Double)
private BigDecimal scoreTwo;
}