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
1a9b5633
Commit
1a9b5633
authored
Sep 19, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改固有风险台账筛选、导出
parent
69383c71
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
9 deletions
+23
-9
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanController.java
...ensoft/censoftrongtong/controller/RiskPlanController.java
+4
-4
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskInherentListExportDto.java
...censoftrongtong/domain/dto/RiskInherentListExportDto.java
+5
-0
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
+10
-1
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanController.java
View file @
1a9b5633
...
...
@@ -177,9 +177,9 @@ public class RiskPlanController extends BaseController
* 导出项目风险清单表
*/
@PostMapping
(
"/exportExcel/InherentList"
)
public
void
export
(
Risk
PlanInherentList
riskPlanInherentList
,
HttpServletResponse
response
)
{
public
void
export
(
Risk
InherentListExportDto
riskInherentListExportDto
,
HttpServletResponse
response
)
{
try
{
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
(
risk
PlanInherentList
);
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
(
risk
InherentListExportDto
);
for
(
RiskInherentListExportDto
dto
:
dtos
)
{
if
(
"1"
.
equals
(
dto
.
getMajorHazardSource
())){
dto
.
setMajorHazardSource
(
"是"
);
...
...
@@ -199,10 +199,10 @@ public class RiskPlanController extends BaseController
* 查询固有风险信息列表
*/
@GetMapping
(
"/inherentList"
)
public
TableDataInfo
list
(
Risk
PlanInherentList
riskPlanInherentList
)
public
TableDataInfo
list
(
Risk
InherentListExportDto
riskInherentListExportDto
)
{
startPage
();
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
(
risk
PlanInherentList
);
List
<
RiskInherentListExportDto
>
dtos
=
riskPlanInherentListService
.
getPlanInherentList
(
risk
InherentListExportDto
);
for
(
RiskInherentListExportDto
dto
:
dtos
)
{
if
(
"1"
.
equals
(
dto
.
getMajorHazardSource
())){
dto
.
setMajorHazardSource
(
"是"
);
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskInherentListExportDto.java
View file @
1a9b5633
...
...
@@ -120,4 +120,9 @@ public class RiskInherentListExportDto {
* 判定依据
*/
private
String
referenceBasis
;
/**
* 任务id
*/
private
Long
planId
;
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
View file @
1a9b5633
...
...
@@ -73,5 +73,5 @@ public interface RiskPlanInherentListMapper extends MPJBaseMapper<RiskPlanInher
RiskNotificationExportWordDto
getRiskNotificationExportWordDto
(
@Param
(
"inherentId"
)
Long
inherentId
);
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
Risk
PlanInherentList
riskPlanInherentList
);
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
Risk
InherentListExportDto
riskInherentListExportDto
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanInherentListService.java
View file @
1a9b5633
...
...
@@ -77,5 +77,5 @@ public interface IRiskPlanInherentListService extends MPJBaseService<RiskPlanInh
void
exportPlanInherentList
(
HttpServletResponse
response
,
List
<
RiskInherentListExportDto
>
dtos
)
throws
IOException
;
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
Risk
PlanInherentList
riskPlanInherentList
);
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
Risk
InherentListExportDto
riskInherentListExportDto
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
View file @
1a9b5633
...
...
@@ -400,8 +400,8 @@ public class RiskPlanInherentListServiceImpl
}
@Override
public
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
Risk
PlanInherentList
riskPlanInherentList
)
{
return
riskPlanInherentListMapper
.
getPlanInherentList
(
risk
PlanInherentList
);
public
List
<
RiskInherentListExportDto
>
getPlanInherentList
(
Risk
InherentListExportDto
riskInherentListExportDto
)
{
return
riskPlanInherentListMapper
.
getPlanInherentList
(
risk
InherentListExportDto
);
}
...
...
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
View file @
1a9b5633
...
...
@@ -449,7 +449,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN risk_plan_existing_list rpel ON rpel.inherent_id = rpil.id
WHERE
rpil.id IS NOT NULL
<if
test=
"name != null"
>
and risk_plan_inherent_list.name like concat('%',#{name},'%')
</if>
<if
test=
"deptName != null and deptName != ''"
>
and sd.dept_name like concat('%',#{deptName},'%')
</if>
<if
test=
"projectName != null and projectName != ''"
>
and lp.name like concat('%',#{projectName},'%')
</if>
<if
test=
"city != null and city != ''"
>
and lp.city like concat('%',#{city},'%')
</if>
<if
test=
"businessFormat != null and businessFormat != ''"
>
and lp.business like concat('%',#{businessFormat},'%')
</if>
<if
test=
"inherentName != null and inherentName != ''"
>
and rpil.`name` like concat('%',#{inherentName},'%')
</if>
<if
test=
"inherentLevel != null and inherentLevel != ''"
>
and rpil.`level` like concat('%',#{inherentLevel},'%')
</if>
<if
test=
"existingName != null and existingName != ''"
>
and rpel.`name` like concat('%',#{existingName},'%')
</if>
<if
test=
"existingLevel != null and existingLevel != ''"
>
and rpel.`level` like concat('%',#{existingLevel},'%')
</if>
<if
test=
"presenceLocation != null and presenceLocation != ''"
>
and rpil.presence_location like concat('%',#{presenceLocation},'%')
</if>
<if
test=
"listType != null and listType != ''"
>
and rpil.type like concat('%',#{listType},'%')
</if>
<if
test=
"planId != null"
>
and rp.id = #{name}
</if>
GROUP BY rpil.id
</select>
...
...
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