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
999cff3e
Commit
999cff3e
authored
Jan 20, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ka-商品技术需求购物车不校验商品库存' into develop
parents
bbbc0033
9c1fb75a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
order-application-service/src/main/java/cn/freemud/service/impl/EvaluationServiceImpl.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+6
-3
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/EvaluationServiceImpl.java
View file @
999cff3e
...
...
@@ -199,7 +199,7 @@ public class EvaluationServiceImpl implements EvaluationService {
getEvaluationsByOrderIdReq
.
setPartnerId
(
request
.
getPartnerId
());
OrderBaseResp
<
GetEvaluationsByOrderIdResultDto
>
evaluationsByOrderId
=
orderSdkService
.
getEvaluationsByOrderId
(
getEvaluationsByOrderIdReq
,
LogThreadLocal
.
getTrackingNo
());
CheckAndJoinResponse
checkAndJoinMsg
;
if
(
evaluationsByOrderId
!=
null
&&
evaluationsByOrderId
.
getResult
()
!=
null
&&
evaluationsByOrderId
.
getResult
().
getOrderEvaluations
().
size
()
>
0
)
{
if
(
evaluationsByOrderId
!=
null
&&
evaluationsByOrderId
.
getResult
()
!=
null
&&
CollectionUtils
.
isNotEmpty
(
evaluationsByOrderId
.
getResult
().
getOrderEvaluations
())
)
{
// 获取 评价有礼活动
GetOrderEvaluationDto
assortmentOrderEvaluation
=
evaluationsByOrderId
.
getResult
().
getOrderEvaluations
().
get
(
0
);
checkAndJoinMsg
=
getCheckAndJoinMsg
(
orderDetailResponse
.
getResult
(),
request
.
getSessionId
(),
assortmentOrderEvaluation
.
getOrderId
(),
assortmentOrderEvaluation
.
getActivityId
());
...
...
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
999cff3e
...
...
@@ -1309,8 +1309,8 @@ public class PayServiceImpl {
return
plugInParameter
;
}
String
applyMchid
=
assortmentOpenPlatformPartnerPaymentAuth
.
getSp_m
chid
();
String
signMchid
=
openPlatformPartnerPaymentConfigs
.
get
(
0
).
getSubM
chid
();
String
applyMchid
=
openPlatformPartnerPaymentConfigs
.
get
(
0
).
getSubM
chid
();
String
signMchid
=
assortmentOpenPlatformPartnerPaymentAuth
.
getSp_m
chid
();
String
thirdStoreId
=
assortmentOpenPlatformPaymentStore
.
getThirdStoreId
();
plugInParameter
.
setApplyMchid
(
applyMchid
);
plugInParameter
.
setSignMchid
(
signMchid
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
999cff3e
...
...
@@ -2372,11 +2372,14 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
requestDto
.
setStoreId
(
addShoppingCartGoodsRequestVo
.
getShopId
());
requestDto
.
setProductIds
(
productIds
);
GetProductStockResponseDto
availableStocks
=
stockClient
.
getAvailableStocks
(
requestDto
);
if
(
availableStocks
==
null
||
!
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
.
equals
(
availableStocks
.
getCode
()))
{
// 商品服务 返回null 或者 qty=null 表示不限制库存
if
(
Objects
.
isNull
(
availableStocks
)
||
Objects
.
isNull
(
availableStocks
.
getResult
().
get
(
0
).
getQty
()))
{
return
;
}
if
(!
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
.
equals
(
availableStocks
.
getCode
()))
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_STOCK_NOT_HAVE
);
}
int
stock
=
CollectionUtils
.
isEmpty
(
availableStocks
.
getResult
())
||
availableStocks
.
getResult
().
get
(
0
).
getQty
()
==
null
?
0
:
availableStocks
.
getResult
().
get
(
0
).
getQty
();
int
stock
=
availableStocks
.
getResult
().
get
(
0
).
getQty
();
if
(
stock
<=
0
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_STOCK_NOT_HAVE
);
}
else
if
(
stock
<
qty
)
{
...
...
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