Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
7d8dc654
Commit
7d8dc654
authored
Apr 09, 2024
by
周亚武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钉钉相关接口
parent
66058a6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dingding/personal/service/impl/DingPersonServiceImpl.java
...dingding/personal/service/impl/DingPersonServiceImpl.java
+4
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dingding/personal/service/impl/DingPersonServiceImpl.java
View file @
7d8dc654
...
@@ -244,14 +244,15 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
...
@@ -244,14 +244,15 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
ListProcessInstanceIdsResponse
rsp
=
client
.
listProcessInstanceIdsWithOptions
(
listProcessInstanceIdsRequest
,
listProcessInstanceIdsHeaders
,
runtimeOptions
);
ListProcessInstanceIdsResponse
rsp
=
client
.
listProcessInstanceIdsWithOptions
(
listProcessInstanceIdsRequest
,
listProcessInstanceIdsHeaders
,
runtimeOptions
);
if
(
rsp
.
getBody
().
getSuccess
())
{
if
(
rsp
.
getBody
().
getSuccess
())
{
log
.
info
(
"获取审批实例id列表成功->"
+
JSONObject
.
toJSONString
(
rsp
.
getBody
().
getResult
()));
return
Rest
.
ok
(
rsp
.
getBody
().
getResult
());
return
Rest
.
ok
(
rsp
.
getBody
().
getResult
());
}
else
{
}
else
{
log
.
info
(
"获取审批实例列表失败->"
+
JSONObject
.
toJSONString
(
rsp
));
log
.
info
(
"获取审批实例
id
列表失败->"
+
JSONObject
.
toJSONString
(
rsp
));
return
Rest
.
fail
(
"查询失败:"
+
rsp
.
getBody
().
getSuccess
());
return
Rest
.
fail
(
"查询失败:"
+
rsp
.
getBody
().
getSuccess
());
}
}
}
catch
(
Exception
_err
)
{
}
catch
(
Exception
_err
)
{
TeaException
err
=
new
TeaException
(
_err
.
getMessage
(),
_err
);
TeaException
err
=
new
TeaException
(
_err
.
getMessage
(),
_err
);
log
.
error
(
"获取审批实例列表失败->"
,
_err
);
log
.
error
(
"获取审批实例
id
列表失败->"
,
_err
);
if
(!
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
code
)
&&
!
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
message
))
{
if
(!
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
code
)
&&
!
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
message
))
{
// err 中含有 code 和 message 属性,可帮助开发定位问题
// err 中含有 code 和 message 属性,可帮助开发定位问题
log
.
error
(
"code = "
+
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
code
)
+
" message = "
+
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
message
));
log
.
error
(
"code = "
+
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
code
)
+
" message = "
+
com
.
aliyun
.
teautil
.
Common
.
empty
(
err
.
message
));
...
@@ -287,6 +288,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
...
@@ -287,6 +288,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
.
setProcessInstanceId
(
processInstanceId
);
.
setProcessInstanceId
(
processInstanceId
);
log
.
info
(
"processInstanceId:{}"
,
processInstanceId
);
log
.
info
(
"processInstanceId:{}"
,
processInstanceId
);
GetProcessInstanceResponse
rsp
=
client
.
getProcessInstanceWithOptions
(
getProcessInstanceRequest
,
getProcessInstanceHeaders
,
new
com
.
aliyun
.
teautil
.
models
.
RuntimeOptions
());
GetProcessInstanceResponse
rsp
=
client
.
getProcessInstanceWithOptions
(
getProcessInstanceRequest
,
getProcessInstanceHeaders
,
new
com
.
aliyun
.
teautil
.
models
.
RuntimeOptions
());
log
.
error
(
"根据用户查询审批详情成功"
,
JSONObject
.
toJSONString
(
rsp
.
getBody
().
getResult
()));
return
Rest
.
ok
(
"成功"
,
rsp
.
getBody
().
getResult
());
return
Rest
.
ok
(
"成功"
,
rsp
.
getBody
().
getResult
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"根据用户查询审批详情失败"
,
e
);
log
.
error
(
"根据用户查询审批详情失败"
,
e
);
...
...
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