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
37cd71e3
Commit
37cd71e3
authored
Aug 04, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取公共代码,暂无需求开发
parent
1225ea66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
24 deletions
+17
-24
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/PayRefundStatus.java
+14
-7
order-management/src/main/java/cn/freemud/management/service/handle/PaymentHandle.java
+3
-17
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/PayRefundStatus.java
View file @
37cd71e3
...
@@ -30,17 +30,24 @@ public enum PayRefundStatus {
...
@@ -30,17 +30,24 @@ public enum PayRefundStatus {
this
.
desc
=
desc
;
this
.
desc
=
desc
;
}
}
public
static
PayRefundStatus
getByCode
(
Integer
code
)
{
public
static
PayRefundStatus
getBy
PayResult
Code
(
Integer
code
)
{
if
(
code
==
null
)
{
if
(
code
==
null
)
{
return
null
;
return
PayRefundStatus
.
FAIL
;
}
}
for
(
PayRefundStatus
payStatus
:
values
())
{
switch
(
code
)
{
if
(
payStatus
.
getCode
().
equals
(
code
))
{
// 退款中状态码需要单独处理
return
payStatus
;
case
8200305
:
return
PayRefundStatus
.
RUNNING
;
// 重复请求,按照退款中处理
case
82004005
:
return
PayRefundStatus
.
RUNNING
;
// 退款成功
case
100
:
return
PayRefundStatus
.
SUCCESS
;
default
:
return
PayRefundStatus
.
FAIL
;
}
}
}
}
return
null
;
}
public
Integer
getCode
()
{
public
Integer
getCode
()
{
return
code
;
return
code
;
...
...
order-management/src/main/java/cn/freemud/management/service/handle/PaymentHandle.java
View file @
37cd71e3
...
@@ -19,8 +19,6 @@ import com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformIapp
...
@@ -19,8 +19,6 @@ import com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformIapp
import
com.freemud.application.sdk.api.base.BaseResponse
;
import
com.freemud.application.sdk.api.base.BaseResponse
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.enums.PayChannelType
;
import
com.freemud.application.sdk.api.ordercenter.enums.orderv1.OrderTypeV1
;
import
com.freemud.application.sdk.api.ordercenter.request.OrderExtInfoDto
;
import
com.freemud.application.sdk.api.ordercenter.request.OrderExtInfoDto
;
import
com.freemud.application.sdk.api.ordercenter.request.OrderExtendedReq
;
import
com.freemud.application.sdk.api.ordercenter.request.OrderExtendedReq
;
import
com.freemud.application.sdk.api.ordercenter.response.OrderBaseResp
;
import
com.freemud.application.sdk.api.ordercenter.response.OrderBaseResp
;
...
@@ -35,11 +33,11 @@ import org.apache.commons.collections4.CollectionUtils;
...
@@ -35,11 +33,11 @@ import org.apache.commons.collections4.CollectionUtils;
import
org.apache.commons.lang.ObjectUtils
;
import
org.apache.commons.lang.ObjectUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
...
@@ -226,19 +224,7 @@ public class PaymentHandle {
...
@@ -226,19 +224,7 @@ public class PaymentHandle {
private
PayRefundStatus
getFinalRefundStatus
(
Integer
resultCode
)
{
private
PayRefundStatus
getFinalRefundStatus
(
Integer
resultCode
)
{
switch
(
resultCode
)
{
return
PayRefundStatus
.
getByPayResultCode
(
resultCode
);
// 退款中状态码需要单独处理
case
8200305
:
return
PayRefundStatus
.
RUNNING
;
// 重复请求,按照退款中处理
case
82004005
:
return
PayRefundStatus
.
RUNNING
;
// 退款成功
case
100
:
return
PayRefundStatus
.
SUCCESS
;
default
:
return
PayRefundStatus
.
FAIL
;
}
}
}
...
...
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