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
9a517e24
Commit
9a517e24
authored
Dec 08, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/coco-payGift-刘鹏飞' into feature/coco-payGift-刘鹏飞
parents
624ea801
0df64af7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
shopping-cart-application-service/src/main/java/cn/freemud/constant/ResponseCodeConstant.java
+3
-0
shopping-cart-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
+5
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/constant/ResponseCodeConstant.java
View file @
9a517e24
...
@@ -9,6 +9,9 @@ public class ResponseCodeConstant {
...
@@ -9,6 +9,9 @@ public class ResponseCodeConstant {
public
final
static
String
RESPONSE_SUCCESS_STR
=
"100"
;
public
final
static
String
RESPONSE_SUCCESS_STR
=
"100"
;
// coco券校验异常的错误
public
final
static
String
COCO_RESPONSE_COUPON_ERR_STR
=
"700"
;
public
final
static
String
RESPONSE_SUCCESS_OK
=
"ok"
;
public
final
static
String
RESPONSE_SUCCESS_OK
=
"ok"
;
public
final
static
Integer
RESPONSE_SUCCESS_1
=
1
;
public
final
static
Integer
RESPONSE_SUCCESS_1
=
1
;
public
final
static
String
RESPONSE_SUCCESS_0_STR
=
"0"
;
public
final
static
String
RESPONSE_SUCCESS_0_STR
=
"0"
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
View file @
9a517e24
...
@@ -139,6 +139,7 @@ public enum ResponseResult {
...
@@ -139,6 +139,7 @@ public enum ResponseResult {
COUPON_SHOP_NOTSUPPORT
(
"46010"
,
"优惠券在当前门店不可用"
),
COUPON_SHOP_NOTSUPPORT
(
"46010"
,
"优惠券在当前门店不可用"
),
COUPON_ORDER_WAY_ERROR
(
"46011"
,
"您选择得优惠券不适用该点餐方式"
),
COUPON_ORDER_WAY_ERROR
(
"46011"
,
"您选择得优惠券不适用该点餐方式"
),
COUPON_VERIFICATION_FAIL
(
"46012"
,
"优惠券核销失败"
),
COUPON_VERIFICATION_FAIL
(
"46012"
,
"优惠券核销失败"
),
COCO_COUPON_VALIDATOR_FAIL
(
"46013"
,
"优惠券验证错误"
),
/**
/**
* 加价购商品
* 加价购商品
*/
*/
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
View file @
9a517e24
...
@@ -194,6 +194,11 @@ public class CalculationSharingDiscountService {
...
@@ -194,6 +194,11 @@ public class CalculationSharingDiscountService {
return
result
;
return
result
;
}
}
// 这个是专门给coco使用的券验证错误的异常,message要抛出去
if
(
sharingDiscountResponseDto
!=
null
&&
StringUtils
.
equals
(
sharingDiscountResponseDto
.
getStatusCode
(),
ResponseCodeConstant
.
COCO_RESPONSE_COUPON_ERR_STR
)){
throw
new
ServiceException
(
ResponseResult
.
COCO_COUPON_VALIDATOR_FAIL
,
sharingDiscountResponseDto
.
getMsg
());
}
// 支付宝华莱士紧急修改代码,当促销返回103错误码时,需要报券不适用于该门店,且清空购物车
// 支付宝华莱士紧急修改代码,当促销返回103错误码时,需要报券不适用于该门店,且清空购物车
//throw new ServiceException(ResponseResult.OPERATE_TOO_OFTEN);
//throw new ServiceException(ResponseResult.OPERATE_TOO_OFTEN);
return
null
;
return
null
;
...
...
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