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
19ac43e2
Commit
19ac43e2
authored
Mar 02, 2022
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' of…
Merge branch 'dev_upgrade' of
http://39.98.45.134:8090/station/YeeAmosFireAutoSysRoot
into dev_upgrade
parents
c2f2c985
de7feb91
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
2 deletions
+35
-2
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
application-dev.properties
...utoSysStart/src/main/resources/application-dev.properties
+2
-2
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 @
19ac43e2
...
...
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicBoolean
;
@RestController
@RequestMapping
(
"/api/contingencyPlan"
)
...
...
@@ -224,4 +225,11 @@ public class ContingencyPlanController extends BaseController {
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 @
19ac43e2
...
...
@@ -49,4 +49,6 @@ public interface PlanDetailMapper {
PlanDetailVo
getPlanDetailByEquipmentId
(
@Param
(
"fireEquipmentId"
)
Long
fireEquipmentId
);
Integer
planReset
();
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
19ac43e2
...
...
@@ -36,6 +36,7 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicBoolean
;
/**
* @program: YeeAmosFireAutoSysRoot
...
...
@@ -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 @
19ac43e2
...
...
@@ -13,6 +13,7 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.atomic.AtomicBoolean
;
/**
* @author wjk
...
...
@@ -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
);
AtomicBoolean
planReset
();
}
YeeAmosFireAutoSysStart/src/main/resources/application-dev.properties
View file @
19ac43e2
...
...
@@ -10,11 +10,11 @@ spring.datasource.validationQuery = SELECT 1
#系统服务账号,用户后端服务调用
security.password
=
a1234560
security.loginId
=
fas_
autosys
security.loginId
=
fas_
system
#应用product appkey
security.productWeb
=
STUDIO_APP_WEB
security.appKey
=
studio_normalapp_2681691
security.appKey
=
studio_normalapp_3056965
eureka.client.serviceUrl.defaultZone
=
http://172.16.11.20:10001/eureka/
eureka.client.register-with-eureka
=
true
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/PlanDetailMapper.xml
View file @
19ac43e2
...
...
@@ -133,4 +133,9 @@
and d.is_delete = false
limit 1
</select>
<update
id=
"planReset"
>
UPDATE c_plan_detail SET `status` = 2;
UPDATE c_plan_operation_record SET `status`=1;
</update>
</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