Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
RuoYi-Vue-master
Commits
8637f028
Commit
8637f028
authored
Aug 24, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改固有风险清单列表接口
parent
447b7a2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
33 deletions
+4
-33
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanInherentListController.java
...ftrongtong/controller/RiskPlanInherentListController.java
+2
-32
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
...in/resources/mapper/system/RiskPlanInherentListMapper.xml
+2
-1
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanInherentListController.java
View file @
8637f028
...
...
@@ -52,39 +52,9 @@ public class RiskPlanInherentListController extends BaseController
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RiskPlanInherentList
riskPlanInherentList
)
{
PageDomain
pageDomain
=
TableSupport
.
buildPageRequest
();
Integer
pageNum
=
pageDomain
.
getPageNum
();
Integer
pageSize
=
pageDomain
.
getPageSize
();
List
<
String
>
listBuilds
=
new
ArrayList
<>();
List
<
RiskPlanInherentList
>
listRs
=
new
ArrayList
<>();
if
(
riskPlanInherentList
.
getPlanId
()!=
null
){
RiskPlan
riskPlan
=
riskPlanService
.
selectRiskPlanById
(
riskPlanInherentList
.
getPlanId
());
listBuilds
=
Arrays
.
asList
(
riskPlan
.
getBuildingIds
().
split
(
","
));
}
riskPlanInherentList
.
setPlanId
(
null
);
//查询所有
startPage
();
List
<
RiskPlanInherentList
>
list
=
riskPlanInherentListService
.
selectRiskPlanInherentListList
(
riskPlanInherentList
);
//筛选任务关联楼栋风险信息
if
(
listBuilds
.
size
()>
0
)
{
for
(
RiskPlanInherentList
planInherentList
:
list
)
{
if
(
listBuilds
.
contains
(
planInherentList
.
getBuildingId
()))
{
listRs
.
add
(
planInherentList
);
}
}
}
int
num
=
listRs
.
size
();
listRs
=
listRs
.
stream
()
.
skip
((
pageNum
-
1
)
*
pageSize
)
.
limit
(
pageSize
)
.
collect
(
Collectors
.
toList
());
TableDataInfo
rspData
=
new
TableDataInfo
();
rspData
.
setCode
(
HttpStatus
.
SUCCESS
);
rspData
.
setRows
(
listRs
);
rspData
.
setTotal
(
num
);
return
rspData
;
return
getDataTable
(
list
);
}
...
...
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
View file @
8637f028
...
...
@@ -96,10 +96,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ledger_building lb ON lb.id = lf.building_id
LEFT JOIN sys_dict_data sdd ON sdd.dict_label = rpil.LEVEL
AND dict_type = 'risk_plan_level'
LEFT JOIN risk_plan rp ON FIND_IN_SET( lb.id, rp.building_ids )
<where>
<if
test=
"userId != null "
>
and rpil.user_id = #{userId}
</if>
<if
test=
"roomId != null "
>
and rpil.room_id = #{roomId}
</if>
<if
test=
"planId != null "
>
and rp
il.plan_
id = #{planId}
</if>
<if
test=
"planId != null "
>
and rp
.
id = #{planId}
</if>
<if
test=
"name != null and name != ''"
>
and rpil.name like concat('%', #{name}, '%')
</if>
<if
test=
"pointType != null and pointType != ''"
>
and rpil.point_type = #{pointType}
</if>
<if
test=
"specialEquipment != null "
>
and rpil.special_equipment = #{specialEquipment}
</if>
...
...
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