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
8ad9e5cd
Commit
8ad9e5cd
authored
Jan 20, 2021
by
田涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
98b0b20c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+9
-5
IContingencyPlanService.java
...s/fas/business/service/intfc/IContingencyPlanService.java
+1
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
8ad9e5cd
...
...
@@ -232,6 +232,9 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
else
{
throw
new
YeeException
(
"不可编辑的状态"
);
}
if
(
planDetail
.
getIsDelete
()
==
null
)
{
planDetail
.
setIsDelete
(
false
);
}
PlanDetail
planEntity
=
new
PlanDetail
();
BeanUtils
.
copyProperties
(
planDetail
,
planEntity
);
planDetailDao
.
saveAndFlush
(
planEntity
);
...
...
@@ -242,13 +245,13 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
planDocDao
.
save
(
planDoc
);
planRule
.
setPlanId
(
planId
);
plan
Doc
.
setIsDelete
(
false
);
plan
Rule
.
setIsDelete
(
false
);
planRuleDao
.
deleteByPlanId
(
planId
);
planRuleDao
.
save
(
planRule
);
planEquipment
.
forEach
(
equipment
->
{
equipment
.
setPlanId
(
planId
);
planDoc
.
setIsDelete
(
false
);
equipment
.
setIsDelete
(
false
);
});
planEquipmentDao
.
deleteByPlanId
(
planId
);
planEquipmentDao
.
saveAll
(
planEquipment
);
...
...
@@ -287,9 +290,10 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
List
<
PlanDetail
>
planDetailList
=
planDetailDao
.
getPlanDetailsByIdInAndIsDelete
(
idList
,
false
);
if
(!
planDetailList
.
isEmpty
())
{
planDetailList
.
forEach
(
plan
->
{
if
(
ContingencyPlanStatusEnum
.
getEnum
(
plan
.
getStatus
())
!=
ContingencyPlanStatusEnum
.
DRAFT
&&
ContingencyPlanStatusEnum
.
getEnum
(
plan
.
getStatus
())
!=
ContingencyPlanStatusEnum
.
AVAILABLE
&&
ContingencyPlanStatusEnum
.
getEnum
(
plan
.
getStatus
())
!=
ContingencyPlanStatusEnum
.
NOAVAILABLE
)
{
ContingencyPlanStatusEnum
status
=
ContingencyPlanStatusEnum
.
getEnum
(
plan
.
getStatus
());
if
(
status
!=
ContingencyPlanStatusEnum
.
DRAFT
&&
status
!=
ContingencyPlanStatusEnum
.
AVAILABLE
&&
status
!=
ContingencyPlanStatusEnum
.
NOAVAILABLE
)
{
throw
new
YeeException
(
"包含不可启用的状态"
);
}
plan
.
setStatus
(
ContingencyPlanStatusEnum
.
AVAILABLE
.
getCode
());
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IContingencyPlanService.java
View file @
8ad9e5cd
...
...
@@ -19,7 +19,7 @@ import java.util.Map;
public
interface
IContingencyPlanService
{
String
DELETE_SYNC_PLAN_DOC
=
"DELETE_SYNC_PLAN_DOC"
;
String
DELETE_SYNC_PLAN_RULE
=
"
DELETE_SYNC_PLAN_RULE
"
;
String
DELETE_SYNC_PLAN_RULE
=
"
urule/package/remove
"
;
String
DELETE_SYNC_PLAN_EQUIP
=
"DELETE_SYNC_PLAN_EQUIP"
;
String
planStart
(
ContingencyPlanParamVo
vo
);
...
...
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