|
@@ -290,7 +290,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
Set<ProductMatchResult> productMatchResultSet = product.getMatchresults();
|
|
Set<ProductMatchResult> productMatchResultSet = product.getMatchresults();
|
|
|
productMatchResultDao.delete(productMatchResultSet);
|
|
productMatchResultDao.delete(productMatchResultSet);
|
|
|
goodsService.deleteGoods(goodses);
|
|
goodsService.deleteGoods(goodses);
|
|
|
- productDao.delete(id);
|
|
|
|
|
|
|
+ product.setB2cEnabled(IntegerConstant.NO_SHORT);
|
|
|
|
|
+ //productDao.delete(id); 不允许删除
|
|
|
} else {
|
|
} else {
|
|
|
throw new
|
|
throw new
|
|
|
IllegalOperatorException("该产品中存在已下单的在售产品信息,不能删除");
|
|
IllegalOperatorException("该产品中存在已下单的在售产品信息,不能删除");
|