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
a0bbd2ca
Commit
a0bbd2ca
authored
Aug 26, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预案优化
parent
c91c900c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+3
-1
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+2
-6
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+1
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
a0bbd2ca
...
...
@@ -7,6 +7,8 @@ import com.alibaba.fastjson.JSONObject;
import
com.yeejoin.amos.component.rule.MethodParam
;
import
com.yeejoin.amos.component.rule.RuleActionBean
;
import
com.yeejoin.amos.component.rule.RuleMethod
;
import
com.yeejoin.amos.component.rule.config.ClazzUtils
;
import
com.yeejoin.amos.component.rule.model.FactModel
;
import
com.yeejoin.amos.fas.business.action.el.ELEvaluationContext
;
import
com.yeejoin.amos.fas.business.action.model.ContingencyEvent
;
import
com.yeejoin.amos.fas.business.action.model.ContingencyRo
;
...
...
@@ -62,6 +64,7 @@ import java.lang.reflect.Field;
import
java.lang.reflect.Method
;
import
java.nio.charset.StandardCharsets
;
import
java.text.SimpleDateFormat
;
import
java.time.Instant
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.regex.Matcher
;
...
...
@@ -488,7 +491,6 @@ public class ContingencyAction implements CustomerAction {
log
.
error
(
"optionarea 加入队列失败-->"
+
e
.
getMessage
());
}
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
a0bbd2ca
...
...
@@ -24,18 +24,15 @@ import com.yeejoin.amos.fas.datasync.bo.PlanDetailSyncBo;
import
com.yeejoin.amos.fas.datasync.bo.PlanOperationRecordSyncBo
;
import
com.yeejoin.amos.fas.exception.YeeException
;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.eclipse.paho.client.mqttv3.MqttMessage
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.support.TransactionSynchronization
;
...
...
@@ -47,7 +44,6 @@ import org.typroject.tyboot.component.emq.EmqxListener;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.nio.charset.StandardCharsets
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicBoolean
;
...
...
@@ -307,7 +303,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
@Override
public
ContingencyPlanResponseVo
planStartFirst
(
String
batchNo
,
Toke
toke
)
{
logger
.
info
(
"开始查询Step============="
);
for
(
int
i
=
0
;
i
<
3
0
;
i
++)
{
for
(
int
i
=
0
;
i
<
12
0
;
i
++)
{
ToipResponse
planStepByBatchNo
=
planVisual3dService
.
getPlanStepByBatchNo
(
batchNo
);
logger
.
info
(
"===============1111111,{}"
,
planStepByBatchNo
);
if
(
null
!=
planStepByBatchNo
&&
null
!=
planStepByBatchNo
.
getMsgContext
())
{
...
...
@@ -326,7 +322,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
}
}
try
{
Thread
.
sleep
(
20
00
);
Thread
.
sleep
(
5
00
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
a0bbd2ca
...
...
@@ -42,6 +42,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.time.Instant
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
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