Commit 258e5e44 authored by wangpeng's avatar wangpeng

Merge branch 'dev' into 'test'

优化 See merge request !33
parents a732c79e 05344c5a
...@@ -141,7 +141,7 @@ public class SpuServiceImpl extends ServiceImpl<SpuMapper, Spu> implements ISpuS ...@@ -141,7 +141,7 @@ public class SpuServiceImpl extends ServiceImpl<SpuMapper, Spu> implements ISpuS
} }
spu.setStatus(status); spu.setStatus(status);
//设置商品最大最小值 //设置商品最大最小值
if (pDTO.getSalesType().equals(SalesTypeEnum.BLIND_BOX.getType())) { if (pDTO.getSalesType() != null && 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 {
......
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