Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
1a4e62a3
Commit
1a4e62a3
authored
Aug 09, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qa' of gitlab.freemud.com:order-group-application/order-group into qa
parents
35b59d67
703c1b9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+3
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
1a4e62a3
...
@@ -2645,7 +2645,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -2645,7 +2645,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
qty
+=
cartGoods
.
getQty
();
qty
+=
cartGoods
.
getQty
();
}
}
int
limitCount
=
queryLimitCount
(
partnerId
,
appid
);
int
limitCount
=
queryLimitCount
(
partnerId
,
appid
);
if
(
qty
>
limitCount
)
{
if
(
limitCount
!=
0
&&
qty
>
limitCount
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_LIMIT_ADD
);
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_LIMIT_ADD
);
}
}
return
qty
;
return
qty
;
...
@@ -2715,7 +2715,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -2715,7 +2715,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
}
}
}
int
cartLimitCount
=
queryLimitCount
(
partnerId
,
appid
);
int
cartLimitCount
=
queryLimitCount
(
partnerId
,
appid
);
if
(
checkQty
+
sendQty
>
cartLimitCount
)
{
if
(
c
artLimitCount
!=
0
&&
c
heckQty
+
sendQty
>
cartLimitCount
)
{
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
oldCartGoodsList
,
null
,
tableNumber
,
shoppingCartService
,
bizType
);
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
oldCartGoodsList
,
null
,
tableNumber
,
shoppingCartService
,
bizType
);
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_LIMIT_ADD
);
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_LIMIT_ADD
);
}
}
...
@@ -2741,7 +2741,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -2741,7 +2741,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
}
}
}
}
}
}
if
(
updateQty
+
sendQty
>
cartLimitCount
)
{
if
(
cartLimitCount
!=
0
&&
updateQty
+
sendQty
>
cartLimitCount
)
{
assortmentSdkService
.
updateGoodsQtyBySdk
(
partnerId
,
userId
,
storeId
,
cartGoodsUid
,
goodsQty
,
""
,
shoppingCartBaseService
,
bizType
);
assortmentSdkService
.
updateGoodsQtyBySdk
(
partnerId
,
userId
,
storeId
,
cartGoodsUid
,
goodsQty
,
""
,
shoppingCartBaseService
,
bizType
);
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_LIMIT_ADD
);
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_LIMIT_ADD
);
}
}
...
...
Write
Preview
Markdown
is supported
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