记得上下班打卡 | 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
9f81b124
Commit
9f81b124
authored
Jan 20, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dragon退票实现类 copy -> notify退款实现累
parent
8d763baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
DragonOrderRefundsServiceImpl.java
...ce/dragon/service/impl/DragonOrderRefundsServiceImpl.java
+10
-5
No files found.
liquidnet-bus-service/liquidnet-service-notify/liquidnet-service-notify-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrderRefundsServiceImpl.java
View file @
9f81b124
...
@@ -325,7 +325,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -325,7 +325,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
);
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
log
.
error
(
"
"
);
log
.
error
(
"
异常信息"
,
e
);
channelDto
.
setResult
(
"exception"
);
channelDto
.
setResult
(
"exception"
);
channelDto
.
setMessage
(
"update order refund with db error: "
+
e
.
getMessage
());
channelDto
.
setMessage
(
"update order refund with db error: "
+
e
.
getMessage
());
contentDto
.
setRequest
(
JSON
.
toJSONString
(
reqData
));
contentDto
.
setRequest
(
JSON
.
toJSONString
(
reqData
));
...
@@ -375,10 +375,15 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -375,10 +375,15 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
log
.
error
(
"银联退款,未获取到返回报文或返回http状态码非200"
);
log
.
error
(
"银联退款,未获取到返回报文或返回http状态码非200"
);
return
null
;
return
null
;
}
}
return
null
;
channelDto
.
setResult
(
"refunded"
);
channelDto
.
setMessage
(
paymentType
+
" refund info: "
);
contentDto
.
setRequest
(
JSON
.
toJSONString
(
reqData
));
contentDto
.
setResponse
(
JSON
.
toJSONString
(
rspData
));
channelDto
.
setContent
(
contentDto
);
return
channelDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
log
.
error
(
"
"
);
log
.
error
(
"
异常信息"
,
e
);
return
null
;
return
null
;
}
}
}
}
...
@@ -628,7 +633,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -628,7 +633,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
// 没有订单号 从redids里面查
// 没有订单号 从redids里面查
dto
.
setRefundCode
(
dataUtils
.
getOrderCode
(
msg
.
getString
(
"cp_refundno"
)));
dto
.
setRefundCode
(
dataUtils
.
getOrderCode
(
msg
.
getString
(
"cp_refundno"
)));
dto
.
setRefundPrice
(
msg
.
getBigDecimal
(
"refund_amount"
).
divide
(
BigDecimal
.
valueOf
(
100
)).
toString
());
dto
.
setRefundPrice
(
msg
.
getBigDecimal
(
"refund_amount"
).
divide
(
BigDecimal
.
valueOf
(
100
)).
toString
());
// SimpleDateFormat sdf = new SimpleDateFormat( " yyyy年MM月dd日 " );
// SimpleDateFormat sdf = new SimpleDateFormat( " yyyy年MM月dd日 " );
// 抖音没有传回时间
// 抖音没有传回时间
dto
.
setRefundAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
LocalDateTime
.
now
()));
dto
.
setRefundAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
LocalDateTime
.
now
()));
//抖音回调没有写错误原因
//抖音回调没有写错误原因
...
@@ -760,7 +765,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -760,7 +765,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
dto
.
setRefundAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
LocalDateTime
.
now
()));
dto
.
setRefundAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
LocalDateTime
.
now
()));
// 应答信息
// 应答信息
dto
.
setRefundError
(
notifyMap
.
get
(
"respMsg"
));
dto
.
setRefundError
(
notifyMap
.
get
(
"respMsg"
));
log
.
info
(
"SEND
WEPAY
NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
log
.
info
(
"SEND
union
NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
sendNotifyUrl
(
dto
,
null
);
sendNotifyUrl
(
dto
,
null
);
mqHandleUtil
.
sendMySqlRedis
(
mqHandleUtil
.
sendMySqlRedis
(
SqlMapping
.
get
(
"dragon_order_refund_log.insert"
),
SqlMapping
.
get
(
"dragon_order_refund_log.insert"
),
...
...
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