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
c21a77b1
Commit
c21a77b1
authored
Feb 14, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预案重置功能
parent
0e1545c7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
0 deletions
+33
-0
ContingencyPlanController.java
...os/fas/business/controller/ContingencyPlanController.java
+8
-0
PlanDetailMapper.java
...eejoin/amos/fas/business/dao/mapper/PlanDetailMapper.java
+2
-0
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+14
-0
IContingencyPlanService.java
...s/fas/business/service/intfc/IContingencyPlanService.java
+3
-0
PlanDetailMapper.xml
...ysStart/src/main/resources/db/mapper/PlanDetailMapper.xml
+6
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/ContingencyPlanController.java
View file @
c21a77b1
...
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicBoolean
;
@RestController
@RestController
@RequestMapping
(
"/api/contingencyPlan"
)
@RequestMapping
(
"/api/contingencyPlan"
)
...
@@ -224,4 +225,11 @@ public class ContingencyPlanController extends BaseController {
...
@@ -224,4 +225,11 @@ public class ContingencyPlanController extends BaseController {
return
CommonResponseUtil2
.
success
(
List
);
return
CommonResponseUtil2
.
success
(
List
);
}
}
@ApiOperation
(
value
=
"预案重置"
)
@RequestMapping
(
value
=
"/reset"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
planReset
()
{
AtomicBoolean
bool
=
contingencyPlanService
.
planReset
();
return
CommonResponseUtil2
.
success
(
bool
);
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/PlanDetailMapper.java
View file @
c21a77b1
...
@@ -49,4 +49,6 @@ public interface PlanDetailMapper {
...
@@ -49,4 +49,6 @@ public interface PlanDetailMapper {
PlanDetailVo
getPlanDetailByEquipmentId
(
@Param
(
"fireEquipmentId"
)
Long
fireEquipmentId
);
PlanDetailVo
getPlanDetailByEquipmentId
(
@Param
(
"fireEquipmentId"
)
Long
fireEquipmentId
);
Integer
planReset
();
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
c21a77b1
...
@@ -36,6 +36,7 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
...
@@ -36,6 +36,7 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicBoolean
;
/**
/**
* @program: YeeAmosFireAutoSysRoot
* @program: YeeAmosFireAutoSysRoot
...
@@ -673,4 +674,16 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
...
@@ -673,4 +674,16 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
}
}
}
@Override
public
AtomicBoolean
planReset
()
{
AtomicBoolean
bool
=
new
AtomicBoolean
(
true
);
try
{
planDetailMapper
.
planReset
();
}
catch
(
Exception
e
)
{
bool
.
set
(
false
);
e
.
printStackTrace
();
}
return
bool
;
}
}
}
\ No newline at end of file
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IContingencyPlanService.java
View file @
c21a77b1
...
@@ -13,6 +13,7 @@ import java.util.Date;
...
@@ -13,6 +13,7 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.atomic.AtomicBoolean
;
/**
/**
* @author wjk
* @author wjk
...
@@ -130,4 +131,6 @@ public interface IContingencyPlanService {
...
@@ -130,4 +131,6 @@ public interface IContingencyPlanService {
Page
recordListByPage
(
Page
page
,
Long
planId
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
);
Page
recordListByPage
(
Page
page
,
Long
planId
,
String
planName
,
List
<
Long
>
classifyId
,
Date
startTimeLeft
,
Date
startTimeRight
,
Integer
executionType
,
Integer
planPattern
);
AtomicBoolean
planReset
();
}
}
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/PlanDetailMapper.xml
View file @
c21a77b1
...
@@ -133,4 +133,9 @@
...
@@ -133,4 +133,9 @@
and d.is_delete = false
and d.is_delete = false
limit 1
limit 1
</select>
</select>
<update
id=
"planReset"
>
UPDATE c_plan_detail SET `status` = 2;
UPDATE c_plan_operation_record SET `status`=1;
</update>
</mapper>
</mapper>
\ No newline at end of file
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