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
ea749826
Commit
ea749826
authored
Nov 17, 2022
by
PC-202210251227\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加过滤字段
parent
eff7a397
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
DqPersonelController.java
...a/io/hmit/modules/dq/controller/DqPersonelController.java
+3
-1
DqPersonelServiceImpl.java
...o/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
+3
-1
No files found.
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqPersonelController.java
View file @
ea749826
...
...
@@ -57,7 +57,9 @@ public class DqPersonelController {
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
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
=
"dqRegionId"
,
value
=
"社区id"
,
paramType
=
"query"
,
dataType
=
"int"
)
})
@RequiresPermissions
(
"dq:dqpersonel:page"
)
@DataFilter
()
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
View file @
ea749826
...
...
@@ -41,9 +41,11 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
@Override
public
QueryWrapper
<
DqPersonelEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
String
idcard
=
(
String
)
params
.
get
(
"idcard"
);
Integer
dqRegionId
=
(
Integer
)
params
.
get
(
"dqRegionId"
);
QueryWrapper
<
DqPersonelEntity
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
).
orderByDesc
(
"dq_region_id"
);
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
).
like
(
"idcard"
,
idcard
).
eq
(
"dq_region_id"
,
dqRegionId
).
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