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
07e9dfd6
Commit
07e9dfd6
authored
Jul 11, 2024
by
刘继明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三方券拆分冲正fix
parent
56e53c9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
order-management/src/main/java/cn/freemud/management/service/handle/ThirdCouponOrderHandle.java
+1
-1
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/enums/CashTypeEnum.java
+10
-0
No files found.
order-management/src/main/java/cn/freemud/management/service/handle/ThirdCouponOrderHandle.java
View file @
07e9dfd6
...
...
@@ -100,7 +100,7 @@ public class ThirdCouponOrderHandle {
// 判断是否使用了三方券支付
if
(
CollectionUtils
.
isNotEmpty
(
orderPayItemCreateReqList
))
{
return
orderPayItemCreateReqList
.
stream
().
anyMatch
(
o
->
o
.
getPayChannelType
().
toString
().
equals
(
CashTypeEnum
.
THIRD_COUPON
.
getCode
()));
return
orderPayItemCreateReqList
.
stream
().
anyMatch
(
o
->
CashTypeEnum
.
isThirdCoupon
(
o
.
getPayChannelType
().
toString
()));
}
return
false
;
...
...
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/enums/CashTypeEnum.java
View file @
07e9dfd6
...
...
@@ -7,6 +7,9 @@ public enum CashTypeEnum {
SQB
(
"51"
,
"收钱吧"
),
CASH
(
"52"
,
"现金"
),
THIRD_COUPON
(
"53"
,
"三方券支付"
),
MEITUAN_COUPON
(
"54"
,
"美团团购券支付"
),
TIKTOK_COUPON
(
"55"
,
"抖音团购券支付"
),
;
...
...
@@ -45,4 +48,11 @@ public enum CashTypeEnum {
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
static
boolean
isThirdCoupon
(
String
payType
)
{
return
THIRD_COUPON
.
getCode
().
equals
(
payType
)
||
MEITUAN_COUPON
.
getCode
().
equals
(
payType
)
||
TIKTOK_COUPON
.
getCode
().
equals
(
payType
);
}
}
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