Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
e27bb50d
Commit
e27bb50d
authored
Nov 07, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标准规则库
parent
c374e4c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
SuperviseRuleServiceImpl.java
...module/ugp/biz/service/impl/SuperviseRuleServiceImpl.java
+15
-10
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/SuperviseRuleServiceImpl.java
View file @
e27bb50d
...
...
@@ -38,22 +38,26 @@ public class SuperviseRuleServiceImpl extends BaseService<SuperviseRuleDto,Super
Long
superviseDeptId
=
superviseRule
.
getSuperviseDeptId
();
Long
inspectionUnitId
=
superviseRule
.
getInspectionUnitId
();
LambdaQueryWrapper
<
SuperviseRule
>
wrapper
=
new
LambdaQueryWrapper
<>();
if
(!
ValidationUtil
.
isEmpty
(
adminRegionCode
)){
wrapper
.
eq
(
SuperviseRule:
:
getAdminRegionCode
,
adminRegionCode
);
if
(
ValidationUtil
.
isEmpty
(
adminRegionCode
)){
return
null
;
}
else
{
// if(!ValidationUtil.isEmpty(adminRegionCode)){
// wrapper.eq(SuperviseRule::getAdminRegionCode, adminRegionCode);
// }
wrapper
.
eq
(
SuperviseRule:
:
getAdminRegionCode
,
adminRegionCode
);
}
if
(!
ValidationUtil
.
isEmpty
(
superviseDeptId
))
{
wrapper
.
like
(
SuperviseRule:
:
getSuperviseDeptId
,
superviseDeptId
);
if
(!
ValidationUtil
.
isEmpty
(
superviseDeptId
))
{
wrapper
.
like
(
SuperviseRule:
:
getSuperviseDeptId
,
superviseDeptId
);
}
if
(!
ValidationUtil
.
isEmpty
(
inspectionUnitId
))
{
wrapper
.
like
(
SuperviseRule:
:
getInspectionUnitId
,
inspectionUnitId
);
if
(!
ValidationUtil
.
isEmpty
(
inspectionUnitId
))
{
wrapper
.
like
(
SuperviseRule:
:
getInspectionUnitId
,
inspectionUnitId
);
}
page
=
this
.
page
(
page
,
wrapper
);
page
=
this
.
page
(
page
,
wrapper
);
List
<
SuperviseRule
>
superviseRuleList
=
page
.
getRecords
();
List
<
SuperviseRuleDto
>
superviseRuleDtoList
=
new
ArrayList
<>();
for
(
SuperviseRule
rule:
superviseRuleList
)
{
for
(
SuperviseRule
rule
:
superviseRuleList
)
{
SuperviseRuleDto
superviseRuleDto
=
new
SuperviseRuleDto
();
BeanUtils
.
copyProperties
(
rule
,
superviseRuleDto
);
BeanUtils
.
copyProperties
(
rule
,
superviseRuleDto
);
superviseRuleDto
.
setSuperviseDept
(
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
rule
.
getSuperviseDeptId
())).
getBizOrgName
());
superviseRuleDto
.
setInspectionUnit
(
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
rule
.
getInspectionUnitId
())).
getBizOrgName
());
superviseRuleDto
.
setCreateUnit
(
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
rule
.
getCreateUnitId
())).
getBizOrgName
());
...
...
@@ -61,6 +65,7 @@ public class SuperviseRuleServiceImpl extends BaseService<SuperviseRuleDto,Super
}
page
.
setRecords
(
superviseRuleDtoList
);
return
page
;
}
/**
...
...
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