|
@@ -323,7 +323,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
throw new CustomException("该商品已被购买过,无法改变状态");
|
|
|
}
|
|
|
}
|
|
|
- if(entity.getGoodsType().longValue()==1&&Validator.isNotEmpty(entity.getStudyCount())&&entity.getGoodsId().longValue()>0){
|
|
|
+ if(entity.getGoodsType().longValue()==1&&Validator.isNotEmpty(entity.getStudyCount())&&Validator.isNotEmpty(entity.getGoodsId())){
|
|
|
//判断学习次数有没有变化
|
|
|
GoodsVo old = this.queryById(entity.getGoodsId());
|
|
|
if(Validator.isEmpty(old.getStudyCount())){
|