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
fbff9b97
Commit
fbff9b97
authored
Aug 12, 2021
by
查志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20210811-生态配置redis结构改造-zhiwei.zha' into qa
parents
688d6090
a2f6ce43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+1
-1
order-management/src/main/java/cn/freemud/management/service/handle/OrderVerifyHandle.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
fbff9b97
...
@@ -1978,7 +1978,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -1978,7 +1978,7 @@ public class OrderServiceImpl implements Orderservice {
}
}
}
else
{
}
else
{
// 查询小程序是否配置了退运费
// 查询小程序是否配置了退运费
String
configStr
=
redisCache
.
hashGet
(
KgdRedisKeyConstant
.
REFUND_CFG_TAKE_OUT
,
MessageFormat
.
format
(
KgdRedisKeyConstant
.
ORDER_REFUND_CONFIG
,
orderBean
.
getCompanyId
(),
wxAppId
)
);
String
configStr
=
redisCache
.
hashGet
(
MessageFormat
.
format
(
KgdRedisKeyConstant
.
ORDER_REFUND_CONFIG
,
orderBean
.
getCompanyId
(),
wxAppId
),
KgdRedisKeyConstant
.
REFUND_CFG_TAKE_OUT
);
if
(
StringUtils
.
isNotEmpty
(
configStr
))
{
if
(
StringUtils
.
isNotEmpty
(
configStr
))
{
JSONObject
config
=
JSON
.
parseObject
(
configStr
);
JSONObject
config
=
JSON
.
parseObject
(
configStr
);
String
refundDeliveryFeeConfig
=
config
.
getString
(
OrderRefundEnum
.
REFUND_DELIVERY_FEE_ENABLE
.
getKeyValue
());
String
refundDeliveryFeeConfig
=
config
.
getString
(
OrderRefundEnum
.
REFUND_DELIVERY_FEE_ENABLE
.
getKeyValue
());
...
...
order-management/src/main/java/cn/freemud/management/service/handle/OrderVerifyHandle.java
View file @
fbff9b97
...
@@ -615,7 +615,7 @@ public class OrderVerifyHandle {
...
@@ -615,7 +615,7 @@ public class OrderVerifyHandle {
// 查询小程序配置的退款设置
// 查询小程序配置的退款设置
String
hkey
=
OrderType
.
TAKE_OUT
.
getCode
().
equals
(
data
.
getOrderType
())
?
KgdRedisKeyConstant
.
REFUND_CFG_TAKE_OUT
:
KgdRedisKeyConstant
.
REFUND_CFG_EAT_IN
;
String
hkey
=
OrderType
.
TAKE_OUT
.
getCode
().
equals
(
data
.
getOrderType
())
?
KgdRedisKeyConstant
.
REFUND_CFG_TAKE_OUT
:
KgdRedisKeyConstant
.
REFUND_CFG_EAT_IN
;
String
configStr
=
redisCache
.
hashGet
(
hkey
,
MessageFormat
.
format
(
KgdRedisKeyConstant
.
ORDER_REFUND_CONFIG
,
data
.
getCompanyId
(),
extInfo
.
getAppid
())
);
String
configStr
=
redisCache
.
hashGet
(
MessageFormat
.
format
(
KgdRedisKeyConstant
.
ORDER_REFUND_CONFIG
,
data
.
getCompanyId
(),
extInfo
.
getAppid
()),
hkey
);
if
(
StringUtils
.
isEmpty
(
configStr
))
{
if
(
StringUtils
.
isEmpty
(
configStr
))
{
return
true
;
return
true
;
}
}
...
...
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