Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
f22f8a3c
Commit
f22f8a3c
authored
May 17, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】添加条件
parent
0867698e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
PlanBranchServiceImpl.java
...ce/modules/manage/service/impl/PlanBranchServiceImpl.java
+4
-3
No files found.
src/main/java/io/office/modules/manage/service/impl/PlanBranchServiceImpl.java
View file @
f22f8a3c
...
...
@@ -10,6 +10,7 @@ import io.office.modules.manage.entity.PlanBranchEntity;
import
io.office.modules.manage.service.PlanBranchService
;
import
io.office.modules.manage.vo.request.PlanBranchVo
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
...
...
@@ -22,9 +23,9 @@ public class PlanBranchServiceImpl extends ServiceImpl<PlanBranchDao, PlanBranch
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
QueryWrapper
<
PlanBranchEntity
>
planBranchEntityQueryWrapper
=
new
QueryWrapper
<>();
planBranchEntityQueryWrapper
.
eq
(
params
.
containsKey
(
"classnum"
),
"classnum"
,
params
.
get
(
"classnum"
));
planBranchEntityQueryWrapper
.
eq
(
params
.
containsKey
(
"checkflag"
),
"checkflag"
,
params
.
get
(
"checkflag"
));
planBranchEntityQueryWrapper
.
like
(
params
.
containsKey
(
"name"
),
"name"
,
params
.
get
(
"name"
));
planBranchEntityQueryWrapper
.
eq
(
params
.
get
(
"classnum"
)!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"classnum"
).
toString
()
),
"classnum"
,
params
.
get
(
"classnum"
));
planBranchEntityQueryWrapper
.
eq
(
params
.
get
(
"checkflag"
)!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"checkflag"
).
toString
()
),
"checkflag"
,
params
.
get
(
"checkflag"
));
planBranchEntityQueryWrapper
.
like
(
params
.
get
(
"name"
)!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"name"
).
toString
()
),
"name"
,
params
.
get
(
"name"
));
planBranchEntityQueryWrapper
.
orderByAsc
(
"id"
);
IPage
<
PlanBranchEntity
>
page
=
this
.
page
(
new
Query
<
PlanBranchEntity
>().
getPage
(
params
),
...
...
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