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
f41f2bdd
Commit
f41f2bdd
authored
May 12, 2020
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品不存在提示
parent
b14a29df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
+1
-0
order-application-service/src/main/java/cn/freemud/service/impl/AppOrderServiceImpl.java
+3
-2
No files found.
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
View file @
f41f2bdd
...
@@ -75,6 +75,7 @@ public enum ResponseResult {
...
@@ -75,6 +75,7 @@ public enum ResponseResult {
SHOPPING_CART_COUPON_NOT_EXIST
(
"44010"
,
"商品券不存在"
),
SHOPPING_CART_COUPON_NOT_EXIST
(
"44010"
,
"商品券不存在"
),
SHOPPING_CART_SENDGOODS_NOT_EXIST
(
"44011"
,
"加价购商品不存在"
),
SHOPPING_CART_SENDGOODS_NOT_EXIST
(
"44011"
,
"加价购商品不存在"
),
SHOPPING_CART_STOCK_NOT_HAVE
(
"44012"
,
"商品库存不足"
),
SHOPPING_CART_STOCK_NOT_HAVE
(
"44012"
,
"商品库存不足"
),
SHOPPING_CART_PRODUCT_NOT_EXIST
(
"44013"
,
"商品不存在"
),
/**
/**
* 订单状态码
* 订单状态码
...
...
order-application-service/src/main/java/cn/freemud/service/impl/AppOrderServiceImpl.java
View file @
f41f2bdd
...
@@ -276,8 +276,9 @@ public class AppOrderServiceImpl implements AppOrderService {
...
@@ -276,8 +276,9 @@ public class AppOrderServiceImpl implements AppOrderService {
getProductInfoDto
.
setChannel
(
menuType
);
getProductInfoDto
.
setChannel
(
menuType
);
ProductService
productService
=
SDKCommonBaseContextWare
.
getBean
(
ProductService
.
class
);
ProductService
productService
=
SDKCommonBaseContextWare
.
getBean
(
ProductService
.
class
);
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
ProductInfosDTO
>
productInfosDTOBaseResponse
=
productService
.
listProductInfoByIdList
(
getProductInfoDto
,
LogThreadLocal
.
getTrackingNo
());
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
ProductInfosDTO
>
productInfosDTOBaseResponse
=
productService
.
listProductInfoByIdList
(
getProductInfoDto
,
LogThreadLocal
.
getTrackingNo
());
if
(!
Objects
.
equals
(
ResponseResultEnum
.
SUCCESS
.
getCode
(),
productInfosDTOBaseResponse
.
getCode
())
||
productInfosDTOBaseResponse
.
getData
()
==
null
)
{
if
(!
Objects
.
equals
(
ResponseResultEnum
.
SUCCESS
.
getCode
(),
productInfosDTOBaseResponse
.
getCode
())
throw
new
ServiceException
(
ResponseResult
.
SYSTEM_BUSINESS_ERROR
);
||
productInfosDTOBaseResponse
.
getData
()
==
null
||
productInfosDTOBaseResponse
.
getData
().
getProducts
().
size
()
==
0
)
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_PRODUCT_NOT_EXIST
);
}
}
List
<
ProductBeanDTO
>
productBeanDTOS
=
productInfosDTOBaseResponse
.
getData
().
getProducts
();
List
<
ProductBeanDTO
>
productBeanDTOS
=
productInfosDTOBaseResponse
.
getData
().
getProducts
();
...
...
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