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
e7290ffa
Commit
e7290ffa
authored
Apr 16, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加员工钉钉同步userId
parent
e19e5146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/h5/web/DingTalkLoginController.java
...com/mortals/xhx/busiz/h5/web/DingTalkLoginController.java
+9
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/h5/web/DingTalkLoginController.java
View file @
e7290ffa
...
@@ -184,11 +184,20 @@ public class DingTalkLoginController extends BaseCRUDJsonBodyMappingController<U
...
@@ -184,11 +184,20 @@ public class DingTalkLoginController extends BaseCRUDJsonBodyMappingController<U
StaffEntity
staffEntity
=
staffService
.
selectOne
(
new
StaffQuery
().
phoneNumber
(
req
.
getPhone
()));
StaffEntity
staffEntity
=
staffService
.
selectOne
(
new
StaffQuery
().
phoneNumber
(
req
.
getPhone
()));
if
(
ObjectUtils
.
isEmpty
(
staffEntity
))
if
(
ObjectUtils
.
isEmpty
(
staffEntity
))
throw
new
AppException
(
String
.
format
(
"系统未找到当前用户,姓名:%s,手机:%s,请联系管理员!"
,
req
.
getUserName
(),
req
.
getPhone
()));
throw
new
AppException
(
String
.
format
(
"系统未找到当前用户,姓名:%s,手机:%s,请联系管理员!"
,
req
.
getUserName
(),
req
.
getPhone
()));
UserQuery
userQuery
=
new
UserQuery
();
UserQuery
userQuery
=
new
UserQuery
();
userQuery
.
setLoginName
(
req
.
getUserName
());
userEntity
=
userService
.
selectOne
(
userQuery
);
if
(!
ObjectUtils
.
isEmpty
(
userEntity
))
throw
new
AppException
(
String
.
format
(
"登录用户名已经存在!"
));
userQuery
=
new
UserQuery
();
userQuery
.
setCustomerId
(
staffEntity
.
getId
());
userQuery
.
setCustomerId
(
staffEntity
.
getId
());
userEntity
=
userService
.
selectOne
(
userQuery
);
userEntity
=
userService
.
selectOne
(
userQuery
);
if
(
ObjectUtils
.
isEmpty
(
userEntity
))
if
(
ObjectUtils
.
isEmpty
(
userEntity
))
throw
new
AppException
(
String
.
format
(
"员工未与系统用户绑定,staffId:%s"
,
staffEntity
.
getId
()));
throw
new
AppException
(
String
.
format
(
"员工未与系统用户绑定,staffId:%s"
,
staffEntity
.
getId
()));
userEntity
.
setDingUserId
(
req
.
getOpenId
());
userEntity
.
setDingUserId
(
req
.
getOpenId
());
userEntity
.
setLoginName
(
req
.
getUserName
());
userEntity
.
setLoginName
(
req
.
getUserName
());
...
...
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