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
a2b94ff8
Commit
a2b94ff8
authored
Dec 07, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改判断逻辑
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
4e00e149
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+7
-7
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
a2b94ff8
...
@@ -1361,7 +1361,6 @@ public class OrderAdapter {
...
@@ -1361,7 +1361,6 @@ public class OrderAdapter {
public
OrderViewStatusDto
getOrderViewStatusDesc
(
OrderBeanV1
orderBean
,
String
wxAppId
)
{
public
OrderViewStatusDto
getOrderViewStatusDesc
(
OrderBeanV1
orderBean
,
String
wxAppId
)
{
OrderViewStatusDto
orderViewStatusDto
=
new
OrderViewStatusDto
();
OrderViewStatusDto
orderViewStatusDto
=
new
OrderViewStatusDto
();
AppLogUtil
.
infoLog
(
"getOrderStatusDesc start "
,
JSON
.
toJSONString
(
orderBean
),
""
);
RefundBeanV1
refundBean
=
null
;
RefundBeanV1
refundBean
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
orderBean
.
getRefundList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
orderBean
.
getRefundList
()))
{
refundBean
=
orderBean
.
getRefundList
().
get
(
0
);
refundBean
=
orderBean
.
getRefundList
().
get
(
0
);
...
@@ -1764,7 +1763,13 @@ public class OrderAdapter {
...
@@ -1764,7 +1763,13 @@ public class OrderAdapter {
return
this
.
checkAdvanceOrder
(
orderBean
.
getGmtExpect
());
return
this
.
checkAdvanceOrder
(
orderBean
.
getGmtExpect
());
}
}
// 加价购选择虚拟商品券包,订单完成前可申请退款,完成之后不能申请退款
// fisherman 虚拟券商品是否可退款配置校验
if
(
orderBean
.
getBizType
().
compareTo
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
())
==
0
)
{
return
this
.
checkRefundButtionBizTypeIs6
(
orderBean
.
getCompanyId
(),
orderBean
.
getBizType
(),
orderBean
.
getStatus
(),
wxAppId
,
new
Date
(
orderBean
.
getGmtCreate
()),
orderBean
.
getOrderType
());
}
// 加价购选择虚拟商品券包,订单完成前可申请退款,完成之后不能申请退款 --> 这里的 bizType应该是 = 1的
if
(
OrderStatus
.
COMPLETE
.
equals
(
status
)
&&
CollectionUtils
.
isNotEmpty
(
orderBean
.
getProductList
()))
{
if
(
OrderStatus
.
COMPLETE
.
equals
(
status
)
&&
CollectionUtils
.
isNotEmpty
(
orderBean
.
getProductList
()))
{
for
(
ProductBeanV1
productBeanV1
:
orderBean
.
getProductList
()){
for
(
ProductBeanV1
productBeanV1
:
orderBean
.
getProductList
()){
if
(
StringUtils
.
isNotEmpty
(
productBeanV1
.
getExtInfo
())){
if
(
StringUtils
.
isNotEmpty
(
productBeanV1
.
getExtInfo
())){
...
@@ -1775,11 +1780,6 @@ public class OrderAdapter {
...
@@ -1775,11 +1780,6 @@ public class OrderAdapter {
}
}
}
}
}
}
// fisherman 虚拟券商品是否可退款配置校验
if
(
orderBean
.
getBizType
().
compareTo
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
())
==
0
)
{
return
this
.
checkRefundButtionBizTypeIs6
(
orderBean
.
getCompanyId
(),
orderBean
.
getBizType
(),
orderBean
.
getStatus
(),
wxAppId
,
new
Date
(
orderBean
.
getGmtCreate
()),
orderBean
.
getOrderType
());
}
boolean
canRefund
=
false
;
boolean
canRefund
=
false
;
// 查询小程序配置的退款设置
// 查询小程序配置的退款设置
...
...
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