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
4eac554e
Commit
4eac554e
authored
Apr 21, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
频次券
parent
d70cc89c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
order-application-service/src/main/java/cn/freemud/constant/ResponseCodeConstant.java
+1
-0
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
+1
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+4
-0
No files found.
order-application-service/src/main/java/cn/freemud/constant/ResponseCodeConstant.java
View file @
4eac554e
...
...
@@ -10,6 +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
;
...
...
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
View file @
4eac554e
...
...
@@ -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/CheckOrder.java
View file @
4eac554e
...
...
@@ -634,6 +634,9 @@ public class CheckOrder {
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
());
}
if
(!
ObjectUtils
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
,
apportionResponse
.
getCode
()))
{
ResponseResult
responseResult
=
ResponseResult
.
getResponseResult
(
apportionResponse
.
getCode
());
...
...
@@ -647,6 +650,7 @@ public class CheckOrder {
throw
new
ServiceException
(
ResponseResult
.
SHOPPING_CART_GETINFO_INVAILD
);
}
// 拼单处理
if
(
this
.
isCollageOrder
(
createOrderVo
))
{
// 处理拼单加购人信息
...
...
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