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
9ce33dbe
Commit
9ce33dbe
authored
Nov 17, 2022
by
PC-202210251227\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ea749826
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
DqPersonelController.java
...a/io/hmit/modules/dq/controller/DqPersonelController.java
+1
-1
DqPersonelServiceImpl.java
...o/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
+9
-4
No files found.
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqPersonelController.java
View file @
9ce33dbe
...
@@ -88,7 +88,7 @@ public class DqPersonelController {
...
@@ -88,7 +88,7 @@ public class DqPersonelController {
dqPersonelService
.
save
(
dto
);
dqPersonelService
.
save
(
dto
);
return
new
Result
();
return
new
Result
<>
();
}
}
@PutMapping
@PutMapping
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
View file @
9ce33dbe
...
@@ -41,11 +41,16 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
...
@@ -41,11 +41,16 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
@Override
@Override
public
QueryWrapper
<
DqPersonelEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
public
QueryWrapper
<
DqPersonelEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
String
id
=
(
String
)
params
.
get
(
"id"
);
String
idcard
=
(
String
)
params
.
get
(
"idcard"
);
Integer
dqRegionId
=
(
Integer
)
params
.
get
(
"dqRegionId"
);
QueryWrapper
<
DqPersonelEntity
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
DqPersonelEntity
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
).
like
(
"idcard"
,
idcard
).
eq
(
"dq_region_id"
,
dqRegionId
).
orderByDesc
(
"dq_region_id"
);
if
(
params
.
get
(
"dqRegionId"
)
!=
null
){
Integer
dqRegionId
=
Integer
.
parseInt
((
String
)
params
.
get
(
"dqRegionId"
));
wrapper
.
eq
(
"dq_region_id"
,
dqRegionId
);
}
if
(
params
.
get
(
"idcard"
)
!=
null
){
String
idcard
=
(
String
)
params
.
get
(
"idcard"
);
wrapper
.
like
(
"idcard"
,
idcard
);
}
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
).
orderByDesc
(
"dq_region_id"
);
if
(
params
.
get
(
Constant
.
SQL_FILTER
)!=
null
){
if
(
params
.
get
(
Constant
.
SQL_FILTER
)!=
null
){
wrapper
.
apply
(
params
.
get
(
Constant
.
SQL_FILTER
)
!=
null
,
params
.
get
(
Constant
.
SQL_FILTER
).
toString
());
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