Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
059af5b3
Commit
059af5b3
authored
Sep 04, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.5.8-hgw-权限-角色-账号
parent
374978d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
SysRoleInfoServiceImpl.java
...us/v1/permission/service/impl/SysRoleInfoServiceImpl.java
+4
-0
SysUserInfoServiceImpl.java
...us/v1/permission/service/impl/SysUserInfoServiceImpl.java
+15
-0
No files found.
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysRoleInfoServiceImpl.java
View file @
059af5b3
...
...
@@ -157,9 +157,13 @@ public class SysRoleInfoServiceImpl extends ServiceImpl<SysRoleInfoMapper, SysRo
private
LambdaQueryWrapper
buildQueryWrapper
(
SysRoleInfoSearchVo
entity
)
{
LambdaQueryWrapper
<
SysRoleInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
SysRoleInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
);
if
(
Common
.
isNotNull
(
entity
.
getRoleName
()))
{
wrapper
.
like
(
SysRoleInfo:
:
getRoleName
,
entity
.
getRoleName
());
}
if
(
Common
.
isNotNull
(
entity
.
getStatus
()))
{
wrapper
.
eq
(
SysRoleInfo:
:
getStatus
,
entity
.
getStatus
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateTimeStart
()))
{
wrapper
.
ge
(
SysRoleInfo:
:
getCreateTime
,
entity
.
getCreateTimeStart
());
}
...
...
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysUserInfoServiceImpl.java
View file @
059af5b3
...
...
@@ -83,6 +83,21 @@ public class SysUserInfoServiceImpl extends ServiceImpl<SysUserInfoMapper, SysUs
private
LambdaQueryWrapper
buildQueryWrapper
(
SysUserInfoSearchVo
entity
)
{
LambdaQueryWrapper
<
SysUserInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
Common
.
isNotNull
(
entity
.
getFdName
()))
{
wrapper
.
like
(
SysUserInfo:
:
getFdName
,
entity
.
getFdName
());
}
if
(
Common
.
isNotNull
(
entity
.
getFdLoginName
()))
{
wrapper
.
eq
(
SysUserInfo:
:
getFdLoginName
,
entity
.
getFdLoginName
());
}
if
(
Common
.
isNotNull
(
entity
.
getFdDeptName
()))
{
wrapper
.
like
(
SysUserInfo:
:
getFdDeptName
,
entity
.
getFdDeptName
());
}
if
(
Common
.
isNotNull
(
entity
.
getRoleNames
()))
{
wrapper
.
like
(
SysUserInfo:
:
getRoleNames
,
entity
.
getRoleNames
());
}
if
(
Common
.
isNotNull
(
entity
.
getStatus
()))
{
wrapper
.
eq
(
SysUserInfo:
:
getStatus
,
entity
.
getStatus
());
}
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimes
()))
{
wrapper
.
ge
(
SysUserInfo:
:
getCreateTime
,
entity
.
getCreateTimes
()[
0
])
.
le
(
SysUserInfo:
:
getCreateTime
,
...
...
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