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
92502d3c
Commit
92502d3c
authored
Apr 21, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 saas的购物车校验, 崇福的
parent
246c5030
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
order-application-service/src/main/java/cn/freemud/constant/ResponseCodeConstant.java
+1
-1
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
+1
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrderSaas.java
+4
-0
No files found.
order-application-service/src/main/java/cn/freemud/constant/ResponseCodeConstant.java
View file @
92502d3c
...
...
@@ -10,7 +10,7 @@ public class ResponseCodeConstant {
public
final
static
String
RESPONSE_SUCCESS_STR
=
"100"
;
public
final
static
String
COCO_RESPONSE_COUPON_ERR_STR
=
"49000"
;
public
final
static
String
USER_HAVE_NO_COUPON
=
"44039"
;
public
final
static
String
RESPONSE_SUCCESS_OK
=
"ok"
;
public
final
static
Integer
RESPONSE_SUCCESS_1
=
1
;
public
final
static
String
RESPONSE_SUCCESS_0_STR
=
"0"
;
...
...
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
View file @
92502d3c
...
...
@@ -198,6 +198,7 @@ public enum ResponseResult {
COUPON_INVAILD
(
"46014"
,
"优惠券失效"
),
COUPON_DATETIME_INVAILD
(
"46015"
,
"优惠券在当前时间不可用"
),
COUPON_ORDER_ORIGINAL_AMOUNT_NOT_ENOUGH
(
"46016"
,
"优惠券不满足可用金额门槛"
),
SHOPPING_CART_USER_HAVE_NO_COUPON
(
"46017"
,
"使用的商品券已失效,请重新下单"
),
/**
* 加价购商品
*/
...
...
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrderSaas.java
View file @
92502d3c
...
...
@@ -78,6 +78,10 @@ public class CheckOrderSaas extends CheckOrderUniversal {
if
(
ObjectUtils
.
equals
(
ResponseCodeConstant
.
COCO_RESPONSE_COUPON_ERR_STR
,
apportionResponse
.
getCode
()))
{
throw
new
ServiceException
(
ResponseResult
.
COCO_COUPON_VALIDATOR_FAIL
,
apportionResponse
.
getMessage
());
}
if
(
ObjectUtils
.
equals
(
ResponseCodeConstant
.
USER_HAVE_NO_COUPON
,
apportionResponse
.
getCode
()))
{
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_USER_HAVE_NO_COUPON
,
apportionResponse
.
getMessage
());
}
return
apportionResponse
;
}
...
...
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