Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
Project
Project
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
external
on-site-service
Commits
7422f9ba
Commit
7422f9ba
authored
Jul 27, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改用户类型bug
parent
0a8cf3a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
UserService.java
...ava/com/onsiteservice/admin/service/user/UserService.java
+3
-1
No files found.
admin/src/main/java/com/onsiteservice/admin/service/user/UserService.java
View file @
7422f9ba
...
...
@@ -52,10 +52,12 @@ public class UserService extends AbstractMapper<User> {
condition
.
setAccountNo
(
user
.
getId
());
var
promote
=
servicePromoteMapper
.
selectOne
(
condition
);
if
(
promote
==
null
)
{
var
modifyUser
=
userMapper
.
selectByPrimaryKey
(
user
.
getId
());
promote
=
condition
;
promote
.
setCount
(
0
);
promote
.
setUserName
(
modifyUser
.
getUserName
());
EntityUtils
.
insert
(
promote
,
userId
);
servicePromoteMapper
.
insert
Selective
(
promote
);
servicePromoteMapper
.
insert
(
promote
);
}
}
return
this
.
updateByPrimaryKeySelective
(
user
);
...
...
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