Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
dqms
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
xuhuanchao
dqms
Commits
85856ccb
Commit
85856ccb
authored
Dec 05, 2022
by
PC-202210251227\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增筛选人员
parent
9ce33dbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
DqPersonelController.java
...a/io/hmit/modules/dq/controller/DqPersonelController.java
+1
-0
DqPersonelServiceImpl.java
...o/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
+4
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqPersonelController.java
View file @
85856ccb
...
...
@@ -59,6 +59,7 @@ public class DqPersonelController {
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"idcard"
,
value
=
"身份证号"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"name"
,
value
=
"身份证号"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"dqRegionId"
,
value
=
"社区id"
,
paramType
=
"query"
,
dataType
=
"int"
)
})
@RequiresPermissions
(
"dq:dqpersonel:page"
)
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
View file @
85856ccb
...
...
@@ -50,6 +50,10 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
String
idcard
=
(
String
)
params
.
get
(
"idcard"
);
wrapper
.
like
(
"idcard"
,
idcard
);
}
if
(
params
.
get
(
"name"
)
!=
null
){
String
name
=
(
String
)
params
.
get
(
"name"
);
wrapper
.
like
(
"name"
,
name
);
}
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
).
orderByDesc
(
"dq_region_id"
);
if
(
params
.
get
(
Constant
.
SQL_FILTER
)!=
null
){
wrapper
.
apply
(
params
.
get
(
Constant
.
SQL_FILTER
)
!=
null
,
params
.
get
(
Constant
.
SQL_FILTER
).
toString
());
...
...
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