Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
a332715b
Commit
a332715b
authored
Dec 20, 2023
by
wqc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
8f1741c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
sys-server/src/main/java/com/zq/system/modules/system/domain/User.java
+3
-0
sys-server/src/main/java/com/zq/system/modules/system/repository/UserRepository.java
+1
-1
No files found.
sys-server/src/main/java/com/zq/system/modules/system/domain/User.java
View file @
a332715b
...
...
@@ -103,6 +103,9 @@ public class User extends BaseEntity implements Serializable {
@ApiModelProperty
(
value
=
"是否启用"
)
private
Boolean
enabled
;
@ApiModelProperty
(
value
=
"是否为单点登录账号"
)
private
Integer
ssoType
;
@ApiModelProperty
(
value
=
"是否为admin账号"
,
hidden
=
true
)
private
Boolean
isAdmin
=
false
;
...
...
sys-server/src/main/java/com/zq/system/modules/system/repository/UserRepository.java
View file @
a332715b
...
...
@@ -136,7 +136,7 @@ public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificat
* @param phone/
* @return /
*/
@Query
(
value
=
"SELECT * FROM sys_user u WHERE u.phone= ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * FROM sys_user u WHERE u.phone= ?1
AND u.sso_type=1
"
,
nativeQuery
=
true
)
User
findBySysname
(
String
phone
);
/**
...
...
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