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
4e00e149
Commit
4e00e149
authored
Dec 07, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改判断逻辑
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
c901851a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+5
-3
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
4e00e149
...
@@ -1778,7 +1778,7 @@ public class OrderAdapter {
...
@@ -1778,7 +1778,7 @@ public class OrderAdapter {
// fisherman 虚拟券商品是否可退款配置校验
// fisherman 虚拟券商品是否可退款配置校验
if
(
orderBean
.
getBizType
().
compareTo
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
())
==
0
)
{
if
(
orderBean
.
getBizType
().
compareTo
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
())
==
0
)
{
return
this
.
checkRefundButtionBizTypeIs6
(
orderBean
.
getCompanyId
(),
orderBean
.
getBizType
(),
return
this
.
checkRefundButtionBizTypeIs6
(
orderBean
.
getCompanyId
(),
orderBean
.
getBizType
(),
orderBean
.
getStatus
(),
wxAppId
,
new
Date
(
orderBean
.
getGmtCreate
()));
orderBean
.
getStatus
(),
wxAppId
,
new
Date
(
orderBean
.
getGmtCreate
())
,
orderBean
.
getOrderType
()
);
}
}
boolean
canRefund
=
false
;
boolean
canRefund
=
false
;
...
@@ -1862,12 +1862,14 @@ public class OrderAdapter {
...
@@ -1862,12 +1862,14 @@ public class OrderAdapter {
* @param createTime
* @param createTime
* @return
* @return
*/
*/
public
boolean
checkRefundButtionBizTypeIs6
(
String
partnerId
,
Integer
bizType
,
Integer
orderState
,
String
wxAppId
,
Date
createTime
)
{
public
boolean
checkRefundButtionBizTypeIs6
(
String
partnerId
,
Integer
bizType
,
Integer
orderState
,
String
wxAppId
,
Date
createTime
,
Integer
orderType
)
{
if
(
bizType
.
compareTo
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
())
!=
0
||
orderState
.
compareTo
(
OrderStatusV1
.
COMPLETE
.
getV1Code
())
!=
0
)
{
if
(
bizType
.
compareTo
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
())
!=
0
||
orderState
.
compareTo
(
OrderStatusV1
.
COMPLETE
.
getV1Code
())
!=
0
)
{
return
false
;
return
false
;
}
}
String
redisKey
=
MessageFormat
.
format
(
OrderRedisKeyConstant
.
ORDER_REFUND_CONFIG
,
partnerId
,
wxAppId
);
String
redisKey
=
MessageFormat
.
format
(
OrderRedisKeyConstant
.
ORDER_REFUND_CONFIG
,
partnerId
,
wxAppId
);
String
hashKey
=
OrderRedisKeyConstant
.
HashKeyForOrderRefundConfig
.
EAT_IN
;
String
hashKey
=
OrderType
.
TAKE_OUT
.
getCode
().
equals
(
orderType
)
?
OrderRedisKeyConstant
.
HashKeyForOrderRefundConfig
.
TAKE_OUT
:
OrderRedisKeyConstant
.
HashKeyForOrderRefundConfig
.
EAT_IN
;;
String
configStr
=
redisCache
.
hashGet
(
redisKey
,
hashKey
);
String
configStr
=
redisCache
.
hashGet
(
redisKey
,
hashKey
);
if
(
StringUtils
.
isNotEmpty
(
configStr
))
{
if
(
StringUtils
.
isNotEmpty
(
configStr
))
{
OrderRefundConfigEntity
config
=
JSON
.
parseObject
(
configStr
,
OrderRefundConfigEntity
.
class
);
OrderRefundConfigEntity
config
=
JSON
.
parseObject
(
configStr
,
OrderRefundConfigEntity
.
class
);
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
4e00e149
...
@@ -3562,7 +3562,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -3562,7 +3562,7 @@ public class OrderServiceImpl implements Orderservice {
// fisherman 查询配置是否能退款 未完成
// fisherman 查询配置是否能退款 未完成
boolean
isTrue
=
orderAdapter
.
checkRefundButtionBizTypeIs6
(
orderBean
.
getCompanyId
(),
orderBean
.
getBizType
(),
boolean
isTrue
=
orderAdapter
.
checkRefundButtionBizTypeIs6
(
orderBean
.
getCompanyId
(),
orderBean
.
getBizType
(),
orderBean
.
getStatus
(),
userLoginInfoDto
.
getWxAppId
(),
new
Date
(
orderBean
.
getGmtCreate
()));
orderBean
.
getStatus
(),
userLoginInfoDto
.
getWxAppId
(),
new
Date
(
orderBean
.
getGmtCreate
())
,
orderBean
.
getOrderType
()
);
if
(
isTrue
)
{
if
(
isTrue
)
{
return
ResponseUtil
.
success
();
return
ResponseUtil
.
success
();
}
}
...
...
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