Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
b4bdaf2b
Commit
b4bdaf2b
authored
Apr 03, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信退款失败钉钉通知
parent
c12ed7a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
LicenceOrderController.java
.../haoban/manage/web/controller/LicenceOrderController.java
+1
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+2
-0
LicenceOrderApiServiceImpl.java
.../service/out/impl/licence/LicenceOrderApiServiceImpl.java
+23
-1
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/LicenceOrderController.java
View file @
b4bdaf2b
...
@@ -179,7 +179,7 @@ public class LicenceOrderController {
...
@@ -179,7 +179,7 @@ public class LicenceOrderController {
}
}
/**
/**
* 申请
微信
退款
* 申请退款
*/
*/
@RequestMapping
(
"licence-order-wxRefoud"
)
@RequestMapping
(
"licence-order-wxRefoud"
)
public
RestResponse
<
Boolean
>
wxRefund
(
@RequestParam
Long
orderId
,
HttpServletRequest
request
)
{
public
RestResponse
<
Boolean
>
wxRefund
(
@RequestParam
Long
orderId
,
HttpServletRequest
request
)
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
b4bdaf2b
...
@@ -996,6 +996,8 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -996,6 +996,8 @@ public class StaffApiServiceImpl implements StaffApiService {
successMap
.
put
(
"takeoverStaffName"
,
takeOverStaff
.
getStaffName
());
successMap
.
put
(
"takeoverStaffName"
,
takeOverStaff
.
getStaffName
());
successMap
.
put
(
"takeoverStaffPhone"
,
takeOverStaff
.
getPhoneNumber
());
successMap
.
put
(
"takeoverStaffPhone"
,
takeOverStaff
.
getPhoneNumber
());
successList
.
add
(
successMap
);
successList
.
add
(
successMap
);
//更新成员群列表 todo
groupChatService
.
initStaffGroupChat
(
takeOverStaff
.
getStaffId
());
}
else
{
}
else
{
//企微转移失败,记录失败明细
//企微转移失败,记录失败明细
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/licence/LicenceOrderApiServiceImpl.java
View file @
b4bdaf2b
...
@@ -345,7 +345,29 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
...
@@ -345,7 +345,29 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
RefundResDataDTO
refund
=
pay4WXService
.
refund
(
reqData
);
RefundResDataDTO
refund
=
pay4WXService
.
refund
(
reqData
);
logger
.
info
(
"微信订单退款返回信息:{}"
,
JSON
.
toJSONString
(
refund
));
logger
.
info
(
"微信订单退款返回信息:{}"
,
JSON
.
toJSONString
(
refund
));
if
(
refund
!=
null
&&
(
"FAIL"
.
equals
(
refund
.
getReturn_code
())
||
"FAIL"
.
equals
(
refund
.
getResult_code
())))
{
if
(
refund
!=
null
&&
(
"FAIL"
.
equals
(
refund
.
getReturn_code
())
||
"FAIL"
.
equals
(
refund
.
getResult_code
())))
{
//微信退款失败
//微信退款失败,钉钉通知财务人员
//查询gic品牌名称
String
enterpriseName
=
""
;
String
wxEnterpriseName
=
""
;
EnterpriseDTO
enterpriseDTO
=
enterpriseService
.
getEnterpriseById
(
order
.
getEnterpriseId
());
if
(
ObjectUtil
.
isNotNull
(
enterpriseDTO
))
{
enterpriseName
=
enterpriseDTO
.
getEnterpriseName
();
}
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
order
.
getWxEnterpriseId
());
if
(
ObjectUtil
.
isNotNull
(
wxEnterpriseDTO
))
{
wxEnterpriseName
=
wxEnterpriseDTO
.
getCorpName
();
}
//发送钉钉消息通知
String
host
=
config
.
getHost
();
// 最后一个分隔符位置
int
lastIndex
=
host
.
lastIndexOf
(
"/"
);
// 倒数第二个分隔符位置
int
secondLastIndex
=
host
.
lastIndexOf
(
"/"
,
lastIndex
-
1
);
String
subHost
=
host
.
substring
(
0
,
secondLastIndex
+
1
);
String
url
=
subHost
+
"enterprise-operation/#/finance-config/wx-order-detail?tabId=wx_account_order&orderId="
+
order
.
getOrderId
();
String
msg
=
"标题:企微账号许可通知\n品牌名称:"
+
enterpriseName
+
"\n"
+
"企业名称:"
+
wxEnterpriseName
+
"\n"
+
"消息内容:订单编号:"
+
order
.
getOrderNumber
()
+
",申请微信退款失败,请查看原因并处理!\n"
+
"失败原因:"
+
refund
.
getErr_code_des
()+
"\n"
+
url
;
DingUtils
.
send
(
msg
,
"https://oapi.dingtalk.com/robot/send?access_token=63074c9fc1ac2c00aa62477facdf16e5fa2388cf6a621edba1fb05d6e55d031f"
,
false
);
return
ServiceResponse
.
failure
(
refund
.
getResult_code
(),
refund
.
getErr_code_des
());
return
ServiceResponse
.
failure
(
refund
.
getResult_code
(),
refund
.
getErr_code_des
());
}
}
//更新微信订单状态
//更新微信订单状态
...
...
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