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
8bcbba72
Commit
8bcbba72
authored
Apr 28, 2020
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回48小时未处理退款描述
parent
0b23441c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
+23
-1
order-application-service/pom.xml
+1
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+2
-0
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderResponseVo.java
+10
-0
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+10
-0
No files found.
order-application-service/pom.xml
View file @
8bcbba72
...
...
@@ -93,7 +93,7 @@
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<artifactId>
storecenter-sdk
</artifactId>
<version>
2.
3
.3-SNAPSHOT
</version>
<version>
2.
6
.3-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
...
...
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
8bcbba72
...
...
@@ -984,6 +984,8 @@ public class OrderAdapter {
responseVo
.
setRefundStatusDesc
(
Optional
.
ofNullable
(
RefundStatus
.
getByCode
(
refundBean
.
getStatus
()))
.
map
(
RefundStatus:
:
getDesc
).
orElse
(
""
));
responseVo
.
setRefundReason
(
refundBean
.
getReason
());
String
refundCreateTime
=
DateUtil
.
convert2String
(
new
Date
(
Long
.
parseLong
(
refundBean
.
getCreateTime
())),
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
responseVo
.
setRefundCreateTime
(
refundCreateTime
);
}
}
//商品信息转换
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderResponseVo.java
View file @
8bcbba72
...
...
@@ -199,6 +199,16 @@ public class QueryOrderResponseVo {
private
String
rid
;
/**
* 申请退款时间 yyyy-MM-dd HH:mm:ss
*/
private
String
refundCreateTime
;
/**
* 退款文案提示 若48小时后商家未处理,自动同意/拒绝退款
*/
private
String
refundTips
;
/**
* 订单备注
*/
private
String
orderRemark
;
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
8bcbba72
...
...
@@ -934,6 +934,16 @@ public class OrderServiceImpl implements Orderservice {
throw
new
ServiceException
(
ResponseResult
.
ORDER_QUERYORDER_ERROR
);
}
QueryOrderResponseVo
queryOrderResponseVo
=
queryOrderResponseVos
.
get
(
0
);
//48小时自动退款描述
if
(
storeInfo
!=
null
&&
storeInfo
.
getBizVO
()
!=
null
&&
storeInfo
.
getBizVO
().
getStoreConfig
()!=
null
&&
queryOrderResponseVo
.
getRefundStatus
()
!=
null
&&
queryOrderResponseVo
.
getRefundStatus
()
==
1
)
{
if
(
"1"
.
equals
(
storeInfo
.
getBizVO
().
getStoreConfig
().
getAutomaticRefund
())){
queryOrderResponseVo
.
setRefundTips
(
"若48小时后商家未处理,自动同意"
);
}
else
{
queryOrderResponseVo
.
setRefundTips
(
"若48小时后商家未处理,拒绝退款"
);
}
}
if
(
IappIdType
.
WC_XCX
.
getCode
().
equals
(
userInfo
.
getIappId
()))
{
queryOrderResponseVo
.
getProducts
().
stream
().
forEach
(
each
->
{
orderBean
.
getProductList
().
forEach
(
var
->
{
...
...
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