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
6d516aff
Commit
6d516aff
authored
Mar 01, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bizType=1 && marketingType=11 小助手核销的订单不展示退款按钮 返回false
parent
2e492132
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+9
-2
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
6d516aff
...
...
@@ -87,6 +87,7 @@ import com.google.common.collect.Lists;
import
com.google.common.collect.Maps
;
import
com.google.gson.Gson
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.io.ByteOrderMark
;
import
org.apache.commons.lang.ObjectUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.time.FastDateFormat
;
...
...
@@ -669,7 +670,7 @@ public class OrderAdapter {
orderClients
=
Arrays
.
asList
(
OrderClientType
.
SAAS
.
getIndex
(),
OrderClientType
.
ALIPAY
.
getIndex
(),
OrderClientType
.
APP
.
getIndex
());
bizTypes
=
Arrays
.
asList
(
BizTypeEnum
.
ORDINARY
.
getBizType
(),
BizTypeEnum
.
SALE_COUPON
.
getBizType
(),
BizTypeEnum
.
ADVANCE_ORDER
.
getBizType
());
queryOrdersDto
.
setMarketingTypes
(
Arrays
.
asList
(
MarketTypeEnum
.
ORDER
.
getIndex
(),
MarketTypeEnum
.
COLLAGE
.
getIndex
(),
MarketTypeEnum
.
WE_CHAT_LIVE_SELL
.
getIndex
(),
MarketTypeEnum
.
CASHIER
.
getIndex
()));
MarketTypeEnum
.
WE_CHAT_LIVE_SELL
.
getIndex
(),
MarketTypeEnum
.
CASHIER
.
getIndex
()
,
MarketTypeEnum
.
TIKTOK_MARKET_ORDER
.
getIndex
()
));
}
List
<
Integer
>
payStatus
=
Arrays
.
asList
(
PayStatus
.
HAVE_PAID
.
getCode
(),
PayStatus
.
HAVE_REFUND
.
getCode
(),
PayStatus
.
COMPLETE
.
getCode
());
queryOrdersDto
.
setPayStatus
((
Integer
[])
payStatus
.
toArray
());
...
...
@@ -1751,6 +1752,7 @@ public class OrderAdapter {
/**
* 是否支持退款
* fisherman 虚拟券是否可退款 在这里进行操作判断 【ID1039143】 1.已完成状态,2.配置的属性值>0&&时间范围内
* bizType=1 && marketingType=11 小助手核销的订单不展示退款按钮 返回false
*
* @param orderBean 订单详情
* @param wxAppId wxappId
...
...
@@ -1768,7 +1770,12 @@ public class OrderAdapter {
}
// 爱马哥 预定单 付款之后 预定当天之前的时间都可退款
if
(
orderBean
.
getBizType
().
compareTo
(
BizTypeEnum
.
ADVANCE_ORDER
.
getBizType
())
==
0
)
{
return
this
.
checkAdvanceOrder
(
orderBean
.
getGmtExpect
());
return
this
.
checkAdvanceOrder
(
orderBean
.
getGmtExpect
());
}
boolean
isMarketType2Tiktok
=
orderBean
.
getBizType
().
compareTo
(
BizTypeEnum
.
ORDINARY
.
getBizType
())
==
0
&&
orderBean
.
getMarketingType
().
compareTo
(
MarketTypeEnum
.
TIKTOK_MARKET_ORDER
.
getIndex
().
byteValue
())
==
0
;
if
(
isMarketType2Tiktok
)
{
return
false
;
}
// fisherman 虚拟券商品是否可退款配置校验
...
...
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