Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
a0c58e08
Commit
a0c58e08
authored
Apr 08, 2019
by
Junling Bu
Browse files
fix[litemall-admin-api]: 放弃不合适的商品编辑限制
parent
409618f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/service/AdminGoodsService.java
View file @
a0c58e08
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment