Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
c396881e
Commit
c396881e
authored
Dec 15, 2020
by
zhengjiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
b2e1de00
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
RiskModelController.java
...oin/amos/fas/business/controller/RiskModelController.java
+0
-0
RiskSourceMapper.java
...eejoin/amos/fas/business/dao/mapper/RiskSourceMapper.java
+2
-0
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+5
-1
dbTemplate_risk_source.xml
...t/src/main/resources/db/mapper/dbTemplate_risk_source.xml
+9
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/RiskModelController.java
View file @
c396881e
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/RiskSourceMapper.java
View file @
c396881e
...
@@ -99,6 +99,8 @@ public interface RiskSourceMapper extends BaseMapper {
...
@@ -99,6 +99,8 @@ public interface RiskSourceMapper extends BaseMapper {
void
updateRpn
(
RiskSource
riskSource
);
void
updateRpn
(
RiskSource
riskSource
);
void
updateRpnForNull
(
RiskSource
riskSource
);
List
<
RegionTreeResponse
>
getRegionList
(
String
channelType
,
String
orgCode
);
List
<
RegionTreeResponse
>
getRegionList
(
String
channelType
,
String
orgCode
);
HashMap
<
String
,
Object
>
findRegionById
(
@Param
(
"id"
)
Long
id
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"channelType"
)
String
channelType
);
HashMap
<
String
,
Object
>
findRegionById
(
@Param
(
"id"
)
Long
id
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"channelType"
)
String
channelType
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
c396881e
...
@@ -1652,7 +1652,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -1652,7 +1652,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
riskSource
.
setRiskLevelId
(
null
);
riskSource
.
setRiskLevelId
(
null
);
riskSource
.
setFlickerFrequency
(
0
);
riskSource
.
setFlickerFrequency
(
0
);
//1.更新fmea对应风险点rpn、rpni、level
//1.更新fmea对应风险点rpn、rpni、level
riskSourceMapper
.
updateRpn
(
riskSource
);
riskSourceMapper
.
updateRpn
ForNull
(
riskSource
);
//2.记录风险点rpn变化流水
//2.记录风险点rpn变化流水
this
.
saveRpnLog
(
riskSource
.
getId
(),
fmeaId
,
resetValue
,
resetValue
,
notifyType
);
this
.
saveRpnLog
(
riskSource
.
getId
(),
fmeaId
,
resetValue
,
resetValue
,
notifyType
);
...
@@ -1818,6 +1818,10 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -1818,6 +1818,10 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
List
<
Fmea
>
fmeas
=
fmeaMapper
.
listByRiskSourceIds
(
ids
);
List
<
Fmea
>
fmeas
=
fmeaMapper
.
listByRiskSourceIds
(
ids
);
RpnCalculationBo
rpnValueBo
=
RpnUtils
.
calRpnAndRpni
(
fmeas
);
RpnCalculationBo
rpnValueBo
=
RpnUtils
.
calRpnAndRpni
(
fmeas
);
if
(
rpnValueBo
.
isEmpty
())
{
if
(
rpnValueBo
.
isEmpty
())
{
riskSource
.
setRpn
(
null
);
riskSource
.
setRpni
(
null
);
riskSource
.
setRiskLevelId
(
null
);
iRiskSourceDao
.
save
(
riskSource
);
return
;
return
;
}
}
BigDecimal
rpn
=
rpnValueBo
.
getRpn
();
BigDecimal
rpn
=
rpnValueBo
.
getRpn
();
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_risk_source.xml
View file @
c396881e
...
@@ -701,6 +701,15 @@
...
@@ -701,6 +701,15 @@
parent_id = #{riskSourceId}
parent_id = #{riskSourceId}
</select>
</select>
<update
id=
"updateRpnForNull"
>
update f_risk_source
set
rpn = null,
rpni = null,
risk_level_id = null,
flicker_frequency = null
where id = #{id}
</update>
<update
id=
"updateRpn"
>
<update
id=
"updateRpn"
>
update f_risk_source
update f_risk_source
<set>
<set>
...
...
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