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
6992c352
Commit
6992c352
authored
Jan 21, 2021
by
田涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码合并
parent
4a95ea97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
IPlanEquipmentDao.java
...n/amos/fas/business/dao/repository/IPlanEquipmentDao.java
+2
-0
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+16
-13
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/repository/IPlanEquipmentDao.java
View file @
6992c352
...
...
@@ -26,4 +26,6 @@ public interface IPlanEquipmentDao extends BaseDao<PlanEquipment, Long> {
List
<
PlanEquipment
>
findAllByIsDelete
(
Boolean
isDelete
);
List
<
PlanEquipment
>
findAllByPlanIdIn
(
List
<
Long
>
planId
);
List
<
PlanEquipment
>
findAllByFireEquipmentIdIn
(
List
<
Long
>
id
);
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
6992c352
...
...
@@ -252,17 +252,17 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
ContingencyPlanParamVo
vo
=
null
;
if
(
EquipmentRiskTypeEnum
.
HZGJ
.
getCode
().
equals
(
riskType
))
{
List
<
EquipmentFireEquipment
>
equipmentFireEquipmentList
=
equipmentFireEquipmentDao
.
findAllByFireEquipmentId
(
equipmentId
);
if
(
equipmentFireEquipmentList
.
size
()
>
0
)
{
Equipment
equipment
=
equipmentDao
.
findById
(
equipmentFireEquipmentList
.
get
(
0
).
getEquipmentId
()).
orElse
(
null
);
if
(
equipment
!=
null
)
{
PlanEquipment
planEquipment
=
planEquipmentDao
.
findByFireEquipmentId
(
equipment
.
getId
()
);
if
(
planEquipment
!=
null
)
{
vo
=
new
ContingencyPlanParamVo
();
vo
.
setPlanId
(
planEquipment
.
getPlanId
().
toString
()
);
vo
.
setStatus
(
ContingencyPlanStatusEnum
.
ONGOING
.
getCode
());
vo
.
setRiskType
(
riskType
);
return
vo
;
}
if
(
!
equipmentFireEquipmentList
.
isEmpty
()
)
{
List
<
Long
>
ids
=
new
ArrayList
<>(
);
equipmentFireEquipmentList
.
forEach
(
e
->
ids
.
add
(
e
.
getEquipmentId
()));
List
<
PlanEquipment
>
all
=
planEquipmentDao
.
findAllByFireEquipmentIdIn
(
ids
);
PlanEquipment
planEquipment
=
all
.
isEmpty
()
?
null
:
all
.
get
(
0
);
if
(
planEquipment
!=
null
)
{
vo
=
new
ContingencyPlanParamVo
(
);
vo
.
setPlanId
(
planEquipment
.
getPlanId
().
toString
());
vo
.
setStatus
(
ContingencyPlanStatusEnum
.
ONGOING
.
getCode
()
);
vo
.
setRiskType
(
riskType
)
;
return
vo
;
}
}
}
...
...
@@ -270,7 +270,8 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
@Override
public
Page
recordListByPage
(
Page
page
,
Long
planId
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
)
{
public
Page
recordListByPage
(
Page
page
,
Long
planId
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"planName"
,
planName
);
params
.
put
(
"planId"
,
planId
);
...
...
@@ -460,7 +461,9 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
@Override
public
Page
<
PlanDetailVo
>
pageFilter
(
Page
page
,
String
planName
,
Long
classifyId
,
List
<
String
>
planRange
,
String
editOrgName
,
Date
implementationTimeLeft
,
Date
implementationTimeRight
)
{
public
Page
<
PlanDetailVo
>
pageFilter
(
Page
page
,
String
planName
,
Long
classifyId
,
List
<
String
>
planRange
,
String
editOrgName
,
Date
implementationTimeLeft
,
Date
implementationTimeRight
)
{
List
<
Long
>
classifyIdList
=
new
ArrayList
<>();
if
(
classifyId
!=
null
)
{
Collection
<
PlanClassifyTreeVo
>
classifyTreeList
=
planClassifyTreeService
.
getAllChildIncludeMe
(
classifyId
);
...
...
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