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
69383c71
Commit
69383c71
authored
Sep 12, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改固有风险台账
parent
0275604a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
10 deletions
+32
-10
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanController.java
...ensoft/censoftrongtong/controller/RiskPlanController.java
+24
-3
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
...ft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
+1
-1
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanInherentListService.java
...censoftrongtong/service/IRiskPlanInherentListService.java
+1
-1
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
...ongtong/service/impl/RiskPlanInherentListServiceImpl.java
+2
-2
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
...in/resources/mapper/system/RiskPlanInherentListMapper.xml
+4
-3
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanController.java
View file @
69383c71
...
...
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
import
cn.hutool.core.convert.Convert
;
import
com.censoft.censoftrongtong.domain.LedgerBuilding
;
import
com.censoft.censoftrongtong.domain.RiskPlan
;
import
com.censoft.censoftrongtong.domain.RiskPlanInherentList
;
import
com.censoft.censoftrongtong.domain.dto.RiskInherentListExportDto
;
import
com.censoft.censoftrongtong.domain.dto.RiskNotificationExportWordDto
;
import
com.censoft.censoftrongtong.domain.dto.RiskPlanAppTaskDetailsDto
;
...
...
@@ -175,10 +176,10 @@ public class RiskPlanController extends BaseController
/**
* 导出项目风险清单表
*/
@PostMapping
(
"/exportExcel/InherentList
/{planId}
"
)
public
void
export
(
@PathVariable
Long
planId
,
HttpServletResponse
response
)
{
@PostMapping
(
"/exportExcel/InherentList"
)
public
void
export
(
RiskPlanInherentList
riskPlanInherentList
,
HttpServletResponse
response
)
{
try
{
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
ByPlanId
(
planId
);
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
(
riskPlanInherentList
);
for
(
RiskInherentListExportDto
dto
:
dtos
)
{
if
(
"1"
.
equals
(
dto
.
getMajorHazardSource
())){
dto
.
setMajorHazardSource
(
"是"
);
...
...
@@ -193,4 +194,24 @@ public class RiskPlanController extends BaseController
e
.
printStackTrace
();
}
}
/**
* 查询固有风险信息列表
*/
@GetMapping
(
"/inherentList"
)
public
TableDataInfo
list
(
RiskPlanInherentList
riskPlanInherentList
)
{
startPage
();
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
(
riskPlanInherentList
);
for
(
RiskInherentListExportDto
dto
:
dtos
)
{
if
(
"1"
.
equals
(
dto
.
getMajorHazardSource
())){
dto
.
setMajorHazardSource
(
"是"
);
}
else
{
dto
.
setMajorHazardSource
(
"否"
);
dto
.
setHazardSourceName
(
"/"
);
dto
.
setMajorHazardDescription
(
"/"
);
}
}
return
getDataTable
(
dtos
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
View file @
69383c71
...
...
@@ -73,5 +73,5 @@ public interface RiskPlanInherentListMapper extends MPJBaseMapper<RiskPlanInher
RiskNotificationExportWordDto
getRiskNotificationExportWordDto
(
@Param
(
"inherentId"
)
Long
inherentId
);
List
<
RiskInherentListExportDto
>
getPlanInherentList
ByPlanId
(
@Param
(
"planId"
)
Long
planId
);
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanInherentListService.java
View file @
69383c71
...
...
@@ -77,5 +77,5 @@ public interface IRiskPlanInherentListService extends MPJBaseService<RiskPlanInh
void
exportPlanInherentList
(
HttpServletResponse
response
,
List
<
RiskInherentListExportDto
>
dtos
)
throws
IOException
;
List
<
RiskInherentListExportDto
>
getPlanInherentList
ByPlanId
(
Long
planId
);
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
View file @
69383c71
...
...
@@ -400,8 +400,8 @@ public class RiskPlanInherentListServiceImpl
}
@Override
public
List
<
RiskInherentListExportDto
>
getPlanInherentList
ByPlanId
(
Long
planId
)
{
return
riskPlanInherentListMapper
.
getPlanInherentList
ByPlanId
(
planId
);
public
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
)
{
return
riskPlanInherentListMapper
.
getPlanInherentList
(
riskPlanInherentList
);
}
...
...
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
View file @
69383c71
...
...
@@ -413,7 +413,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE
rpil.id = #{inherentId}
</select>
<select
id=
"getPlanInherentList
ByPlanId
"
<select
id=
"getPlanInherentList"
resultType=
"com.censoft.censoftrongtong.domain.dto.RiskInherentListExportDto"
>
SELECT
sd.dept_name AS deptName,
...
...
@@ -448,8 +448,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN risk_plan_inherent_list rpil ON rpil.room_id = lr.id
LEFT JOIN risk_plan_existing_list rpel ON rpel.inherent_id = rpil.id
WHERE
rp.id = #{planId}
AND rpil.id IS NOT NULL
rpil.id IS NOT NULL
<if
test=
"name != null"
>
and risk_plan_inherent_list.name like concat('%',#{name},'%')
</if>
<if
test=
"planId != null"
>
and rp.id = #{name}
</if>
GROUP BY rpil.id
</select>
</mapper>
\ No newline at end of file
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