Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
0cd3ddb3
Commit
0cd3ddb3
authored
Jul 02, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中心BUG修改
parent
9140a2de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
RiskSourceServiceImpl.java
...ejoin/equipmanage/service/impl/RiskSourceServiceImpl.java
+7
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/RiskSourceServiceImpl.java
View file @
0cd3ddb3
...
...
@@ -160,7 +160,6 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
}
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setAlarmInfo
(
equipAlarm
);
...
...
@@ -176,38 +175,43 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
List
<
TableContentVo
>
contentVos
=
new
ArrayList
<>();
for
(
DynamicLabelEnum
u
:
DynamicLabelEnum
.
values
())
{
TableContentVo
contentVo
=
new
TableContentVo
();
contentVo
.
setKey
(
u
.
getCode
());
switch
(
u
.
getCode
())
{
case
"name"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipInfoVo
.
getName
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
case
"code"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipInfoVo
.
getCode
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
case
"position"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipInfoVo
.
getPosition
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
case
"manufacturer"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipInfoVo
.
getManufacturerName
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
case
"systemName"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipInfoVo
.
getSystemName
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
case
"alarmContent"
:
if
(!
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
())
&&
!
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
SCRAP
.
getName
()))
{
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipAlarm
.
getAlarmContent
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
}
else
{
break
;
...
...
@@ -217,6 +221,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setValue
(
equipAlarm
.
getAlarmDate
());
contentVo
.
setType
(
"text"
);
contentVo
.
setKey
(
u
.
getCode
());
break
;
}
else
{
break
;
...
...
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