Commit a0c58e08 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin-api]: 放弃不合适的商品编辑限制

parent 409618f1
...@@ -157,14 +157,6 @@ public class AdminGoodsService { ...@@ -157,14 +157,6 @@ public class AdminGoodsService {
LitemallGoodsProduct[] products = goodsAllinone.getProducts(); LitemallGoodsProduct[] products = goodsAllinone.getProducts();
Integer id = goods.getId(); 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()); String url = qCodeService.createGoodShareImage(goods.getId().toString(), goods.getPicUrl(), goods.getName());
......
Supports Markdown
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