Commit 33249ed0 authored by wlx@33.cn's avatar wlx@33.cn

Merge branch 'dev' of https://gitlab.33.cn/yimu/mall-server into dev

parents 0d332ba2 4a1dd47d
...@@ -135,11 +135,11 @@ public class SpuServiceImpl extends ServiceImpl<SpuMapper, Spu> implements ISpuS ...@@ -135,11 +135,11 @@ public class SpuServiceImpl extends ServiceImpl<SpuMapper, Spu> implements ISpuS
} }
spu.setStatus(status); spu.setStatus(status);
//设置商品最大最小值 //设置商品最大最小值
BigDecimal price = pDTO.getNftdto().getPrice();
if (pDTO.getSalesType().equals(SalesTypeEnum.BLIND_BOX.getType())) { if (pDTO.getSalesType().equals(SalesTypeEnum.BLIND_BOX.getType())) {
spu.setMaxPrice(pDTO.getBlindBoxPrice()); spu.setMaxPrice(pDTO.getBlindBoxPrice());
spu.setDefaultPrice(pDTO.getBlindBoxPrice()); spu.setDefaultPrice(pDTO.getBlindBoxPrice());
} else { } else {
BigDecimal price = pDTO.getNftdto().getPrice();
spu.setMaxPrice(price); spu.setMaxPrice(price);
spu.setDefaultPrice(price); spu.setDefaultPrice(price);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment