Commit 4a1dd47d authored by wp's avatar wp

发布商品bug修复

parent 1e9628a8
...@@ -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