fix[litemall-admin-api]: 放弃不合适的商品编辑限制
This commit is contained in:
@@ -157,14 +157,6 @@ public class AdminGoodsService {
|
||||
LitemallGoodsProduct[] products = goodsAllinone.getProducts();
|
||||
|
||||
Integer id = goods.getId();
|
||||
// 检查是否存在购物车商品或者订单商品
|
||||
// 如果存在则拒绝修改商品。
|
||||
if (orderGoodsService.checkExist(id)) {
|
||||
return ResponseUtil.fail(GOODS_UPDATE_NOT_ALLOWED, "商品已经在订单中,不能修改");
|
||||
}
|
||||
if (cartService.checkExist(id)) {
|
||||
return ResponseUtil.fail(GOODS_UPDATE_NOT_ALLOWED, "商品已经在购物车中,不能修改");
|
||||
}
|
||||
|
||||
//将生成的分享图片地址写入数据库
|
||||
String url = qCodeService.createGoodShareImage(goods.getId().toString(), goods.getPicUrl(), goods.getName());
|
||||
|
||||
Reference in New Issue
Block a user