记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
cd7fb895
Commit
cd7fb895
authored
Aug 01, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refund del log
parent
505e6a60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
KylinOrderRefundsServiceImpl.java
...gzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
+0
-2
KylinRefundsStatusServiceImpl.java
...zai/kylin/service/impl/KylinRefundsStatusServiceImpl.java
+0
-14
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
View file @
cd7fb895
...
...
@@ -285,8 +285,6 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
break
;
case
"reject"
:
boolean
cancelRes
=
kylinRefundsStatusServiceImpl
.
orderTicketRefundCancel
(
refundList
,
false
);
log
.
info
(
"取消处理"
+
cancelRes
);
log
.
info
(
"取消处理ing"
);
res
=
kylinRefundsStatusServiceImpl
.
orderRefundChangeStatus
(
refundList
,
type
,
reject
,
""
);
break
;
case
"unfilled"
:
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinRefundsStatusServiceImpl.java
View file @
cd7fb895
...
...
@@ -232,7 +232,6 @@ public class KylinRefundsStatusServiceImpl {
.
ne
(
"order_refunds_id"
,
orderRefundsId
)
);
log
.
info
(
"refundingCount"
+
refundingCount
);
if
(
refundingCount
>
0
)
{
// 存在其他正在退款的订单
newStatus
=
KylinTableStatusConst
.
ORDER_STATUS3
;
}
else
{
...
...
@@ -334,21 +333,17 @@ public class KylinRefundsStatusServiceImpl {
}
public
boolean
orderRefundChangeStatus
(
List
<
KylinOrderRefunds
>
refundList
,
String
type
,
String
reject
,
String
refuse
)
{
log
.
info
(
"orderRefundChangeStatus ----- in"
);
String
authId
=
ShiroUtils
.
getUserId
().
toString
();
String
authName
=
ShiroUtils
.
getLoginName
();
KylinOrderRefunds
kylinOrderRefunds
=
new
KylinOrderRefunds
();
log
.
info
(
"type"
+
type
);
switch
(
type
)
{
case
"reapply"
:
log
.
info
(
"type-1"
);
kylinOrderRefunds
.
setStatus
(
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPLY
);
kylinOrderRefunds
.
setApplicantId
(
authId
);
kylinOrderRefunds
.
setApplicantName
(
authName
);
kylinOrderRefunds
.
setApplicantAt
(
LocalDateTime
.
now
());
break
;
case
"approved"
:
log
.
info
(
"type-2"
);
kylinOrderRefunds
.
setStatus
(
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPROVED
);
kylinOrderRefunds
.
setAuditorId
(
authId
);
kylinOrderRefunds
.
setAuditorName
(
authName
);
...
...
@@ -356,7 +351,6 @@ public class KylinRefundsStatusServiceImpl {
kylinOrderRefunds
.
setReject
(
reject
);
break
;
case
"reject"
:
log
.
info
(
"type-reject"
+
type
);
kylinOrderRefunds
.
setStatus
(
KylinTableStatusConst
.
ORDER_REFUND_STATUS_REJECT
);
kylinOrderRefunds
.
setAuditorId
(
authId
);
kylinOrderRefunds
.
setAuditorName
(
authName
);
...
...
@@ -364,7 +358,6 @@ public class KylinRefundsStatusServiceImpl {
kylinOrderRefunds
.
setReject
(
reject
);
break
;
case
"refuse"
:
log
.
info
(
"type-3"
);
kylinOrderRefunds
.
setStatus
(
KylinTableStatusConst
.
ORDER_REFUND_STATUS_REFUSE
);
kylinOrderRefunds
.
setExecutorId
(
authId
);
kylinOrderRefunds
.
setExecutorName
(
authName
);
...
...
@@ -384,13 +377,10 @@ public class KylinRefundsStatusServiceImpl {
kylinOrderRefunds
,
new
UpdateWrapper
<
KylinOrderRefunds
>().
in
(
"order_refunds_id"
,
orderRefundIds
)
);
log
.
info
(
"type-4"
);
// 修改缓存
KylinOrderRefundsVo
kylinOrderRefundsVo
=
new
KylinOrderRefundsVo
();
BeanUtils
.
copyProperties
(
kylinOrderRefunds
,
kylinOrderRefundsVo
);
kylinOrderRefundsVo
.
setUpdatedAt
(
LocalDateTime
.
now
());
kylinOrderRefundsVo
.
setReason
(
"11111"
);
log
.
info
(
"kylinOrderRefundsVo-"
+
kylinOrderRefundsVo
.
getStatus
());
for
(
String
refundId
:
orderRefundIds
)
{
BasicDBObject
object
=
new
BasicDBObject
(
"$set"
,
mongoConverter
.
convertToMongoType
(
kylinOrderRefundsVo
));
UpdateResult
updateResult
=
mongoTemplate
.
getCollection
(
KylinOrderRefundsVo
.
class
.
getSimpleName
()).
updateOne
(
...
...
@@ -405,7 +395,6 @@ public class KylinRefundsStatusServiceImpl {
);*/
dataUtils
.
delOrderRefundVo
(
orderRefundIds
);
dataUtils
.
delOrderRefundVoByOrderId
(
orderIds
);
log
.
info
(
"type-5"
);
return
true
;
}
...
...
@@ -444,7 +433,6 @@ public class KylinRefundsStatusServiceImpl {
// sign = MD5.getStrMD5(sign);
sign = sign.toUpperCase();
params.add("sign", sign);*/
log
.
info
(
"退款url"
+
applyUrl
);
log
.
info
(
"退款参数"
+
JsonUtils
.
toJson
(
params
));
// 请求pay
String
postResult
=
null
;
...
...
@@ -453,7 +441,6 @@ public class KylinRefundsStatusServiceImpl {
log
.
info
(
"退款res"
+
postResult
);
HashMap
hashMapResult
=
JsonUtils
.
fromJson
(
postResult
,
HashMap
.
class
);
Boolean
success
=
(
Boolean
)
hashMapResult
.
get
(
"success"
);
log
.
info
(
"success"
+
success
.
toString
());
if
(!
success
)
{
String
msg
=
(
String
)
hashMapResult
.
get
(
"message"
);
log
.
info
(
"退款pay返回失败"
+
msg
);
...
...
@@ -462,7 +449,6 @@ public class KylinRefundsStatusServiceImpl {
}
catch
(
Exception
e
)
{
log
.
info
(
"退款请求pay失败e"
+
e
.
getMessage
());
}
log
.
info
(
"success111"
);
// 更新退款表
kylinOrderRefundsMapper
.
update
(
kylinOrderRefunds
,
...
...
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