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
c2437ee5
Commit
c2437ee5
authored
Dec 23, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coco增加商品代金券类型36
parent
01c1b557
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
6 deletions
+14
-6
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+5
-0
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/OldOrderAccountType.java
+1
-1
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/QueryOrderAccountType.java
+1
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+1
-1
order-application-service/src/main/java/cn/freemud/enums/OrderAccountType.java
+2
-1
order-application-service/src/main/java/cn/freemud/service/coupon/impl/CocoCouponRelationServiceImpl.java
+4
-2
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
c2437ee5
...
...
@@ -1382,6 +1382,9 @@ public class OrderSdkAdapter {
case
"GATHER_SPOT"
:
type
=
221
;
break
;
case
"COCO_PRODUCT_CASH_COUPON"
:
type
=
36
;
break
;
default
:
break
;
}
...
...
@@ -1986,6 +1989,8 @@ public class OrderSdkAdapter {
newOrderAccountType
=
OldOrderAccountType
.
MEMBER_PRICE_DISCOUNT
.
getCode
();
case
99
:
newOrderAccountType
=
OldOrderAccountType
.
FREIGHT_COUPON
.
getCode
();
case
36
:
newOrderAccountType
=
OldOrderAccountType
.
COCO_PRODUCT_CASH_COUPON
.
getCode
();
default
:
break
;
}
...
...
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/OldOrderAccountType.java
View file @
c2437ee5
...
...
@@ -44,7 +44,7 @@ public enum OldOrderAccountType {
TOTAL_DISCOUNT
(
205
,
"优惠总金额"
,
"TOTAL_DISCOUNT"
),
GATHER_SPOT
(
221
,
"集点活动"
,
"GATHER_SPOT"
),
MEMBER_PRICE_DISCOUNT
(
220
,
"会员价优惠"
,
"MEMBER_PRICE_DISCOUNT"
),
COCO_PRO
CUCT_CASH_COUPON
(
36
,
"coco商品代金券"
,
"COCO_PROC
UCT_CASH_COUPON"
);
COCO_PRO
DUCT_CASH_COUPON
(
36
,
"coco商品代金券"
,
"COCO_PROD
UCT_CASH_COUPON"
);
private
Integer
code
;
private
String
desc
;
...
...
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/QueryOrderAccountType.java
View file @
c2437ee5
...
...
@@ -43,7 +43,7 @@ public enum QueryOrderAccountType {
MEMBER_PRICE_DISCOUNT
(
"MEMBER_PRICE_DISCOUNT"
,
"会员价优惠"
),
MCCAFE_MONTH_CARD
(
"MCCAFE_MONTH_CARD"
,
"麦咖啡月卡"
),
WITH_ORDER_BUY_COUPON_FEE
(
"WITH_ORDER_BUY_COUPON_FEE"
,
"随单买月卡"
),
COCO_PRO
CUCT_CASH_COUPON
(
"COCO_PROC
UCT_CASH_COUPON"
,
"coco商品代金券"
),
COCO_PRO
DUCT_CASH_COUPON
(
"COCO_PROD
UCT_CASH_COUPON"
,
"coco商品代金券"
),
;
private
String
code
;
...
...
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
c2437ee5
...
...
@@ -2565,7 +2565,7 @@ public class OrderAdapter {
// coco商品代金券
if
(
ActivityTypeEnum
.
TYPE_36
.
getCode
().
equals
(
activityType
)){
return
OldOrderAccountType
.
COCO_PRO
C
UCT_CASH_COUPON
;
return
OldOrderAccountType
.
COCO_PRO
D
UCT_CASH_COUPON
;
}
return
OldOrderAccountType
.
BUYM_SENDN
;
}
...
...
order-application-service/src/main/java/cn/freemud/enums/OrderAccountType.java
View file @
c2437ee5
...
...
@@ -26,7 +26,8 @@ public enum OrderAccountType {
BUYM_SENDN
(
24
,
"买M赠N"
),
CUSTOMER_SUB
(
4
,
"积分扣减"
),
CARD_ORIGINAL_AMOUNT
(
25
,
"会员卡原价"
),
CARD_DISCOUNT_AMOUNT
(
26
,
"会员卡优惠金额"
);
CARD_DISCOUNT_AMOUNT
(
26
,
"会员卡优惠金额"
),
COCO_PRODUCT_CASH_COUPON
(
36
,
"coco商品代金券"
);;
private
Integer
code
;
private
String
desc
;
...
...
order-application-service/src/main/java/cn/freemud/service/coupon/impl/CocoCouponRelationServiceImpl.java
View file @
c2437ee5
...
...
@@ -142,8 +142,10 @@ public class CocoCouponRelationServiceImpl implements CouponRelationService {
// 根据活动号转类型
Integer
orderAccountType
=
orderSdkAdapter
.
getOldOrderAccountType
(
settlementType
);
// 不是商品券、代金券、折扣券不处理
if
(!
OrderAccountType
.
COUPON
.
getCode
().
equals
(
orderAccountType
)
&&
// 不是商品券、代金券、折扣券、商品代金券不处理
if
(!
OrderAccountType
.
COCO_PRODUCT_CASH_COUPON
.
getCode
().
equals
(
orderAccountType
)
&&
!
OrderAccountType
.
COUPON
.
getCode
().
equals
(
orderAccountType
)
&&
!
OrderAccountType
.
PRODUCT_COUPON
.
getCode
().
equals
(
orderAccountType
)
&&
!
OrderAccountType
.
DISCOUNT_COUPON
.
getCode
().
equals
(
orderAccountType
)){
continue
;
...
...
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