Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
PeiZhen-Java
peizhen-java
Commits
da3b735c
Commit
da3b735c
authored
Oct 10, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排除管理员
parent
8a1edb67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pz-system/src/main/java/com/pz/system/service/impl/SysUserServiceImpl.java
+5
-4
No files found.
pz-system/src/main/java/com/pz/system/service/impl/SysUserServiceImpl.java
View file @
da3b735c
...
@@ -44,10 +44,7 @@ import org.springframework.cache.annotation.Cacheable;
...
@@ -44,10 +44,7 @@ import org.springframework.cache.annotation.Cacheable;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Arrays
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Optional
;
/**
/**
* 用户 业务层处理
* 用户 业务层处理
...
@@ -101,9 +98,13 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
...
@@ -101,9 +98,13 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
private
Wrapper
<
SysUser
>
buildQueryWrapper
(
SysUser
user
)
{
private
Wrapper
<
SysUser
>
buildQueryWrapper
(
SysUser
user
)
{
Map
<
String
,
Object
>
params
=
user
.
getParams
();
Map
<
String
,
Object
>
params
=
user
.
getParams
();
QueryWrapper
<
SysUser
>
wrapper
=
Wrappers
.
query
();
QueryWrapper
<
SysUser
>
wrapper
=
Wrappers
.
query
();
List
<
Integer
>
u
=
new
ArrayList
<>();
u
.
add
(
1
);
u
.
add
(
2
);
wrapper
.
eq
(
"u.del_flag"
,
UserConstants
.
USER_NORMAL
)
wrapper
.
eq
(
"u.del_flag"
,
UserConstants
.
USER_NORMAL
)
.
eq
(
StringUtils
.
isNotBlank
(
user
.
getUserType
()),
"u.user_type"
,
user
.
getUserType
())
.
eq
(
StringUtils
.
isNotBlank
(
user
.
getUserType
()),
"u.user_type"
,
user
.
getUserType
())
.
eq
(
ObjectUtil
.
isNotNull
(
user
.
getUserId
()),
"u.user_id"
,
user
.
getUserId
())
.
eq
(
ObjectUtil
.
isNotNull
(
user
.
getUserId
()),
"u.user_id"
,
user
.
getUserId
())
.
notIn
(
"u.user_id"
,
u
)
.
like
(
StringUtils
.
isNotBlank
(
user
.
getUserName
()),
"u.user_name"
,
user
.
getUserName
())
.
like
(
StringUtils
.
isNotBlank
(
user
.
getUserName
()),
"u.user_name"
,
user
.
getUserName
())
.
eq
(
StringUtils
.
isNotBlank
(
user
.
getStatus
()),
"u.status"
,
user
.
getStatus
())
.
eq
(
StringUtils
.
isNotBlank
(
user
.
getStatus
()),
"u.status"
,
user
.
getStatus
())
.
like
(
StringUtils
.
isNotBlank
(
user
.
getPhonenumber
()),
"u.phonenumber"
,
user
.
getPhonenumber
())
.
like
(
StringUtils
.
isNotBlank
(
user
.
getPhonenumber
()),
"u.phonenumber"
,
user
.
getPhonenumber
())
...
...
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