|
@@ -261,6 +261,12 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
objectLambdaUpdateWrapper.set(Goods::getBuyNote,null);
|
|
|
update(null, objectLambdaUpdateWrapper);
|
|
|
}
|
|
|
+ if(Validator.isEmpty(bo.getSectionMaxNum())){
|
|
|
+ LambdaUpdateWrapper<Goods> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ objectLambdaUpdateWrapper.eq(Goods::getGoodsId,bo.getGoodsId());
|
|
|
+ objectLambdaUpdateWrapper.set(Goods::getSectionMaxNum,null);
|
|
|
+ update(null, objectLambdaUpdateWrapper);
|
|
|
+ }
|
|
|
//试听列表
|
|
|
if(bo.getAuditionList()!=null&&bo.getAuditionList().size()>0){
|
|
|
update.setGoodsAuditionConfig(JSON.toJSONString(bo.getAuditionList()));
|