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
5c70926c
Commit
5c70926c
authored
Aug 22, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、word修改优化
2、开发现有风险的评分
parent
87349419
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
15 deletions
+32
-15
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanAppController.java
...oft/censoftrongtong/controller/RiskPlanAppController.java
+13
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskAssessmentMatrixLevelService.java
...ftrongtong/service/IRiskAssessmentMatrixLevelService.java
+2
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskAssessmentMatrixLevelServiceImpl.java
...ng/service/impl/RiskAssessmentMatrixLevelServiceImpl.java
+15
-0
ruoyi-admin/src/main/resources/templates/ftl/word.ftl
ruoyi-admin/src/main/resources/templates/ftl/word.ftl
+2
-15
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanAppController.java
View file @
5c70926c
...
@@ -861,4 +861,17 @@ public class RiskPlanAppController extends BaseController {
...
@@ -861,4 +861,17 @@ public class RiskPlanAppController extends BaseController {
return
AjaxResult
.
success
(
ledgerFloorService
.
copyFloor
(
sourceFloorId
,
targetFloorId
,
planId
,
getLoginUser
()));
return
AjaxResult
.
success
(
ledgerFloorService
.
copyFloor
(
sourceFloorId
,
targetFloorId
,
planId
,
getLoginUser
()));
}
}
/**
* 现有风险根据得分返回对应的风险等级
*
* @param score 得分
* @real_return {@link R<RiskAssessmentMatrixLevel>}
*/
@GetMapping
(
"/existing/matrix/score/{score}"
)
public
R
<
RiskAssessmentMatrixLevel
>
getRiskAssessmentExistingMatrixLevelByScore
(
@PathVariable
BigDecimal
score
)
{
return
R
.
ok
(
riskAssessmentMatrixLevelService
.
getRiskAssessmentExistingMatrixLevelByScore
(
score
));
}
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskAssessmentMatrixLevelService.java
View file @
5c70926c
...
@@ -14,4 +14,6 @@ import java.math.BigDecimal;
...
@@ -14,4 +14,6 @@ import java.math.BigDecimal;
public
interface
IRiskAssessmentMatrixLevelService
extends
IService
<
RiskAssessmentMatrixLevel
>
{
public
interface
IRiskAssessmentMatrixLevelService
extends
IService
<
RiskAssessmentMatrixLevel
>
{
RiskAssessmentMatrixLevel
getRiskAssessmentMatrixLevelByScore
(
BigDecimal
score
);
RiskAssessmentMatrixLevel
getRiskAssessmentMatrixLevelByScore
(
BigDecimal
score
);
RiskAssessmentMatrixLevel
getRiskAssessmentExistingMatrixLevelByScore
(
BigDecimal
score
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskAssessmentMatrixLevelServiceImpl.java
View file @
5c70926c
...
@@ -44,4 +44,19 @@ public class RiskAssessmentMatrixLevelServiceImpl
...
@@ -44,4 +44,19 @@ public class RiskAssessmentMatrixLevelServiceImpl
return
first
.
get
();
return
first
.
get
();
}
}
@Override
public
RiskAssessmentMatrixLevel
getRiskAssessmentExistingMatrixLevelByScore
(
BigDecimal
score
)
{
RiskAssessmentMatrixLevel
riskAssessmentMatrixLevel
=
new
RiskAssessmentMatrixLevel
();
if
(
score
.
compareTo
(
new
BigDecimal
(
1
))<=
0
){
riskAssessmentMatrixLevel
.
setLevel
(
"低风险"
);
}
else
if
(
score
.
compareTo
(
new
BigDecimal
(
2
))>
0
&&
score
.
compareTo
(
new
BigDecimal
(
3
))<=
0
){
riskAssessmentMatrixLevel
.
setLevel
(
"一般风险"
);
}
else
if
(
score
.
compareTo
(
new
BigDecimal
(
3
))>
0
&&
score
.
compareTo
(
new
BigDecimal
(
3.5
))<=
0
){
riskAssessmentMatrixLevel
.
setLevel
(
"较大风险"
);
}
else
{
riskAssessmentMatrixLevel
.
setLevel
(
"重大风险"
);
}
return
riskAssessmentMatrixLevel
;
}
}
}
ruoyi-admin/src/main/resources/templates/ftl/word.ftl
View file @
5c70926c
...
@@ -698,9 +698,7 @@
...
@@ -698,9 +698,7 @@
<wx:font
wx:val=
"宋体"
/>
<wx:font
wx:val=
"宋体"
/>
</w:rPr>
</w:rPr>
<
#if dangerName??>
<
#if dangerName??>
<w:t>
<w:t>
${dangerName}
</w:t>
${dangerName}
</w:t>
<
/#if>
<
/#if>
</w:r>
</w:r>
</w:p>
</w:p>
...
@@ -769,11 +767,9 @@
...
@@ -769,11 +767,9 @@
<w:rPr>
<w:rPr>
<wx:font
wx:val=
"宋体"
/>
<wx:font
wx:val=
"宋体"
/>
</w:rPr>
</w:rPr>
<w:t>
<
#if pointType??>
<
#if pointType??>
<w:t>
${pointType}
</w:t>
<w:t>
${pointType}
</w:t>
<
/#if>
<
/#if>
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</w:tc>
...
@@ -791,11 +787,10 @@
...
@@ -791,11 +787,10 @@
<w:rPr>
<w:rPr>
<wx:font
wx:val=
"宋体"
/>
<wx:font
wx:val=
"宋体"
/>
</w:rPr>
</w:rPr>
<w:t>
<
#if type??>
<
#if type??>
<w:t>
${type}
</w:t>
<w:t>
${type}
</w:t>
<
/#if>
<
/#if>
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</w:tc>
...
@@ -967,11 +962,9 @@
...
@@ -967,11 +962,9 @@
<w:rPr>
<w:rPr>
<wx:font
wx:val=
"宋体"
/>
<wx:font
wx:val=
"宋体"
/>
</w:rPr>
</w:rPr>
<w:t>
<
#if measuresAdministration??>
<
#if measuresAdministration??>
<w:t>
${measuresAdministration}
</w:t>
<w:t>
${measuresAdministration}
</w:t>
<
/#if>
<
/#if>
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</w:tc>
...
@@ -1051,11 +1044,9 @@
...
@@ -1051,11 +1044,9 @@
<w:jc
w:val=
"center"
/>
<w:jc
w:val=
"center"
/>
</w:pPr>
</w:pPr>
<w:r
wsp:rsidRPr=
"009370A0"
>
<w:r
wsp:rsidRPr=
"009370A0"
>
<w:t>
<
#if deptName??>
<
#if deptName??>
<w:t>
${deptName}
</w:t>
<w:t>
${deptName}
</w:t>
<
/#if>
<
/#if>
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</w:tc>
...
@@ -1070,11 +1061,9 @@
...
@@ -1070,11 +1061,9 @@
<w:jc
w:val=
"center"
/>
<w:jc
w:val=
"center"
/>
</w:pPr>
</w:pPr>
<w:r
wsp:rsidRPr=
"009370A0"
>
<w:r
wsp:rsidRPr=
"009370A0"
>
<w:t>
<
#if userName??>
<
#if userName??>
<w:t>
${userName}
</w:t>
<w:t>
${userName}
</w:t>
<
/#if>
<
/#if>
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</w:tc>
...
@@ -1092,11 +1081,9 @@
...
@@ -1092,11 +1081,9 @@
<w:rPr>
<w:rPr>
<wx:font
wx:val=
"宋体"
/>
<wx:font
wx:val=
"宋体"
/>
</w:rPr>
</w:rPr>
<w:t>
<
#if measuresEmergency??>
<
#if measuresEmergency??>
<w:t>
${measuresEmergency}
</w:t>
<w:t>
${measuresEmergency}
</w:t>
<
/#if>
<
/#if>
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</w:tc>
...
...
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