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
4a016fe8
Commit
4a016fe8
authored
Dec 05, 2022
by
PC-202210251227\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模糊查询字段
parent
85856ccb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
DqPersonelController.java
...a/io/hmit/modules/dq/controller/DqPersonelController.java
+3
-1
DqRegionController.java
...ava/io/hmit/modules/dq/controller/DqRegionController.java
+3
-1
DqPersonelServiceImpl.java
...o/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
+8
-0
DqRegionServiceImpl.java
.../io/hmit/modules/dq/service/impl/DqRegionServiceImpl.java
+8
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqPersonelController.java
View file @
4a016fe8
...
...
@@ -60,7 +60,9 @@ public class DqPersonelController {
@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"
)
@ApiImplicitParam
(
name
=
"dqRegionId"
,
value
=
"社区id"
,
paramType
=
"query"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"community"
,
value
=
"社区地址"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"address"
,
value
=
"详细地址"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@RequiresPermissions
(
"dq:dqpersonel:page"
)
@DataFilter
()
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqRegionController.java
View file @
4a016fe8
...
...
@@ -50,7 +50,9 @@ public class DqRegionController {
@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
=
"community"
,
value
=
"社区地址"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"address"
,
value
=
"详细地址"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@RequiresPermissions
(
"dq:dqregion:page"
)
public
Result
<
PageData
<
DqRegionDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
View file @
4a016fe8
...
...
@@ -54,6 +54,14 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
String
name
=
(
String
)
params
.
get
(
"name"
);
wrapper
.
like
(
"name"
,
name
);
}
if
(
params
.
get
(
"community"
)
!=
null
){
String
community
=
(
String
)
params
.
get
(
"community"
);
wrapper
.
like
(
"community"
,
community
);
}
if
(
params
.
get
(
"address"
)
!=
null
){
String
address
=
(
String
)
params
.
get
(
"address"
);
wrapper
.
like
(
"address"
,
address
);
}
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
());
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/service/impl/DqRegionServiceImpl.java
View file @
4a016fe8
...
...
@@ -27,6 +27,14 @@ public class DqRegionServiceImpl extends CrudServiceImpl<DqRegionDao, DqRegionEn
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
DqRegionEntity
>
wrapper
=
new
QueryWrapper
<>();
if
(
params
.
get
(
"community"
)
!=
null
){
String
community
=
(
String
)
params
.
get
(
"community"
);
wrapper
.
like
(
"community"
,
community
);
}
if
(
params
.
get
(
"address"
)
!=
null
){
String
address
=
(
String
)
params
.
get
(
"address"
);
wrapper
.
like
(
"address"
,
address
);
}
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
return
wrapper
;
...
...
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