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
206934cc
Commit
206934cc
authored
Nov 13, 2020
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upgrade' into eqintegration
parents
38e19aba
07e20761
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
27 deletions
+29
-27
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+15
-15
RiskSituationAction.java
...yeejoin/amos/fas/business/action/RiskSituationAction.java
+3
-4
ContingencyRo.java
...yeejoin/amos/fas/business/action/model/ContingencyRo.java
+2
-2
DeviceRo.java
.../com/yeejoin/amos/fas/business/action/model/DeviceRo.java
+1
-1
SafetyController.java
...eejoin/amos/fas/business/controller/SafetyController.java
+1
-1
PermissionAspect.java
...in/java/com/yeejoin/amos/fas/config/PermissionAspect.java
+5
-2
application.properties
...ireAutoSysStart/src/main/resources/application.properties
+2
-2
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
206934cc
...
@@ -210,7 +210,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -210,7 +210,7 @@ public class ContingencyAction implements CustomerAction {
* @param stepType 步骤类型,总览步骤、详细步骤
* @param stepType 步骤类型,总览步骤、详细步骤
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"步骤更新"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"步骤更新"
,
project
=
"
换流站消防专项
预案"
)
public
void
stepInfo
(
@MethodParam
(
paramLabel
=
"当前编号"
)
String
stepCode
,
public
void
stepInfo
(
@MethodParam
(
paramLabel
=
"当前编号"
)
String
stepCode
,
// @MethodParam(paramLabel = "步骤类型") String stepType,
// @MethodParam(paramLabel = "步骤类型") String stepType,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
...
@@ -255,7 +255,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -255,7 +255,7 @@ public class ContingencyAction implements CustomerAction {
* @param stepCode 当前步骤编号
* @param stepCode 当前步骤编号
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"步骤更新保存"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"步骤更新保存"
,
project
=
"
换流站消防专项
预案"
)
public
void
saveStepInfo
(
@MethodParam
(
paramLabel
=
"当前编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
public
void
saveStepInfo
(
@MethodParam
(
paramLabel
=
"当前编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
iContingencyInstance
.
updateStep
(
stepCode
,
contingencyRo
.
getBatchNo
());
iContingencyInstance
.
updateStep
(
stepCode
,
contingencyRo
.
getBatchNo
());
...
@@ -266,7 +266,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -266,7 +266,7 @@ public class ContingencyAction implements CustomerAction {
* @param content 消息内容
* @param content 消息内容
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"执行记录"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"执行记录"
,
project
=
"
换流站消防专项
预案"
)
public
void
messageRecord
(
@MethodParam
(
paramLabel
=
"消息内容"
)
String
content
,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
public
void
messageRecord
(
@MethodParam
(
paramLabel
=
"消息内容"
)
String
content
,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
stopSnapshop
(
contingencyRo
);
stopSnapshop
(
contingencyRo
);
...
@@ -311,7 +311,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -311,7 +311,7 @@ public class ContingencyAction implements CustomerAction {
* @param content 内容
* @param content 内容
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"智能辅助"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"智能辅助"
,
project
=
"
换流站消防专项
预案"
)
public
void
help
(
@MethodParam
(
paramLabel
=
"当前步骤"
)
String
step
,
public
void
help
(
@MethodParam
(
paramLabel
=
"当前步骤"
)
String
step
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"标题"
)
String
title
,
@MethodParam
(
paramLabel
=
"标题"
)
String
title
,
...
@@ -393,7 +393,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -393,7 +393,7 @@ public class ContingencyAction implements CustomerAction {
* @param buttonJson 按钮json字符串
* @param buttonJson 按钮json字符串
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"交互动作"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"交互动作"
,
project
=
"
换流站消防专项
预案"
)
public
void
operation
(
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
public
void
operation
(
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"提示信息"
)
String
tips
,
@MethodParam
(
paramLabel
=
"提示信息"
)
String
tips
,
...
@@ -468,7 +468,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -468,7 +468,7 @@ public class ContingencyAction implements CustomerAction {
* @param buttonJson 按钮json字符串
* @param buttonJson 按钮json字符串
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"保存交互动作"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"保存交互动作"
,
project
=
"
换流站消防专项
预案"
)
public
void
saveOperation
(
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
public
void
saveOperation
(
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"提示信息"
)
String
tips
,
@MethodParam
(
paramLabel
=
"提示信息"
)
String
tips
,
...
@@ -526,7 +526,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -526,7 +526,7 @@ public class ContingencyAction implements CustomerAction {
* @param actionName 动作名称标识
* @param actionName 动作名称标识
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"地图动作"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"地图动作"
,
project
=
"
换流站消防专项
预案"
)
public
void
mapAction
(
@MethodParam
(
paramLabel
=
"动作名称标识"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"参数"
)
String
paramJSON
,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
public
void
mapAction
(
@MethodParam
(
paramLabel
=
"动作名称标识"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"参数"
)
String
paramJSON
,
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
...
@@ -542,7 +542,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -542,7 +542,7 @@ public class ContingencyAction implements CustomerAction {
this
.
sendcmd
(
"maparea"
,
paramObj
,
result
);
this
.
sendcmd
(
"maparea"
,
paramObj
,
result
);
}
}
@RuleMethod
(
methodLabel
=
"地图动画"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"地图动画"
,
project
=
"
换流站消防专项
预案"
)
public
void
mapCartoonAction
(
public
void
mapCartoonAction
(
@MethodParam
(
paramLabel
=
"动作名称标识"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"动作名称标识"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"动作类型"
)
String
actionType
,
@MethodParam
(
paramLabel
=
"动作类型"
)
String
actionType
,
...
@@ -571,7 +571,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -571,7 +571,7 @@ public class ContingencyAction implements CustomerAction {
* @param messageType 消息类型 messageType 黑色框消息类型CONTINGENCY,,滚动消息:CURRENTMESSAGE
* @param messageType 消息类型 messageType 黑色框消息类型CONTINGENCY,,滚动消息:CURRENTMESSAGE
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"消息提示"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"消息提示"
,
project
=
"
换流站消防专项
预案"
)
public
void
topMessage
(
public
void
topMessage
(
@MethodParam
(
paramLabel
=
"标题"
)
String
title
,
@MethodParam
(
paramLabel
=
"标题"
)
String
title
,
@MethodParam
(
paramLabel
=
"内容"
)
String
content
,
@MethodParam
(
paramLabel
=
"内容"
)
String
content
,
...
@@ -600,7 +600,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -600,7 +600,7 @@ public class ContingencyAction implements CustomerAction {
*
*
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"启动预案"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"启动预案"
,
project
=
"
换流站消防专项
预案"
)
public
void
startPlan
(
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
public
void
startPlan
(
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
stopSnapshop
(
contingencyRo
);
stopSnapshop
(
contingencyRo
);
...
@@ -623,7 +623,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -623,7 +623,7 @@ public class ContingencyAction implements CustomerAction {
*
*
* @param paramObj 预案对象
* @param paramObj 预案对象
*/
*/
@RuleMethod
(
methodLabel
=
"结束预案"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"结束预案"
,
project
=
"
换流站消防专项
预案"
)
public
void
stopPlan
(
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
public
void
stopPlan
(
@MethodParam
(
paramLabel
=
"对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
stopSnapshop
(
contingencyRo
);
stopSnapshop
(
contingencyRo
);
...
@@ -641,7 +641,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -641,7 +641,7 @@ public class ContingencyAction implements CustomerAction {
}
}
@RuleMethod
(
methodLabel
=
"自动执行步骤"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"自动执行步骤"
,
project
=
"
换流站消防专项
预案"
)
public
void
autoExecute
(
public
void
autoExecute
(
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"步骤编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"步骤编号"
)
String
stepCode
,
...
@@ -668,7 +668,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -668,7 +668,7 @@ public class ContingencyAction implements CustomerAction {
}
}
}
}
@RuleMethod
(
methodLabel
=
"添加步骤执行"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"添加步骤执行"
,
project
=
"
换流站消防专项
预案"
)
public
void
addExecute
(
public
void
addExecute
(
@MethodParam
(
paramLabel
=
"步骤编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"步骤编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"按钮编码"
)
String
buttonCode
,
@MethodParam
(
paramLabel
=
"按钮编码"
)
String
buttonCode
,
...
@@ -692,7 +692,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -692,7 +692,7 @@ public class ContingencyAction implements CustomerAction {
this
.
sendcmd
(
"message"
,
ro
,
result
);
this
.
sendcmd
(
"message"
,
ro
,
result
);
}
}
@RuleMethod
(
methodLabel
=
"清除步骤执行"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"清除步骤执行"
,
project
=
"
换流站消防专项
预案"
)
public
void
clearExecute
(
public
void
clearExecute
(
@MethodParam
(
paramLabel
=
"步骤编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"步骤编号"
)
String
stepCode
,
@MethodParam
(
paramLabel
=
"按钮编码"
)
String
buttonCode
,
@MethodParam
(
paramLabel
=
"按钮编码"
)
String
buttonCode
,
...
@@ -721,7 +721,7 @@ public class ContingencyAction implements CustomerAction {
...
@@ -721,7 +721,7 @@ public class ContingencyAction implements CustomerAction {
this
.
sendcmd
(
"message"
,
ro
,
result
);
this
.
sendcmd
(
"message"
,
ro
,
result
);
}
}
@RuleMethod
(
methodLabel
=
"同步自动执行步骤"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"同步自动执行步骤"
,
project
=
"
换流站消防专项
预案"
)
public
void
sendExecute
(
@MethodParam
(
paramLabel
=
"预案对象"
)
Object
paramObj
)
{
public
void
sendExecute
(
@MethodParam
(
paramLabel
=
"预案对象"
)
Object
paramObj
)
{
SafteyPlanResult
result
=
new
SafteyPlanResult
();
SafteyPlanResult
result
=
new
SafteyPlanResult
();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/RiskSituationAction.java
View file @
206934cc
...
@@ -42,7 +42,7 @@ public class RiskSituationAction implements CustomerAction
...
@@ -42,7 +42,7 @@ public class RiskSituationAction implements CustomerAction
@Value
(
"${spring.application.name}"
)
@Value
(
"${spring.application.name}"
)
private
String
serviceName
;
private
String
serviceName
;
@RuleMethod
(
methodLabel
=
"气泡提示"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"气泡提示"
,
project
=
"
换流站消防专项
预案"
)
public
void
sendBubbleTip
(
@MethodParam
(
paramLabel
=
"bizobj对象"
)
Object
bizobj
,
public
void
sendBubbleTip
(
@MethodParam
(
paramLabel
=
"bizobj对象"
)
Object
bizobj
,
@MethodParam
(
paramLabel
=
"是否显示名称"
)
Boolean
showInfo
,
@MethodParam
(
paramLabel
=
"是否显示名称"
)
Boolean
showInfo
,
@MethodParam
(
paramLabel
=
"标题"
)
String
title
)
@MethodParam
(
paramLabel
=
"标题"
)
String
title
)
...
@@ -82,7 +82,7 @@ public class RiskSituationAction implements CustomerAction
...
@@ -82,7 +82,7 @@ public class RiskSituationAction implements CustomerAction
}
}
}
}
@RuleMethod
(
methodLabel
=
"区域颜色改变"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"区域颜色改变"
,
project
=
"
换流站消防专项
预案"
)
public
void
regionChange
(
@MethodParam
(
paramLabel
=
"bizobj对象"
)
Object
bizobj
,
@MethodParam
(
paramLabel
=
"颜色"
)
String
colour
)
public
void
regionChange
(
@MethodParam
(
paramLabel
=
"bizobj对象"
)
Object
bizobj
,
@MethodParam
(
paramLabel
=
"颜色"
)
String
colour
)
{
{
BubbleTipResult
result
=
new
BubbleTipResult
();
BubbleTipResult
result
=
new
BubbleTipResult
();
...
@@ -117,12 +117,11 @@ public class RiskSituationAction implements CustomerAction
...
@@ -117,12 +117,11 @@ public class RiskSituationAction implements CustomerAction
//@ExposeAction(value = "区域闪烁",snapshot = false)
//@ExposeAction(value = "区域闪烁",snapshot = false)
@RuleMethod
(
methodLabel
=
"区域闪烁"
,
project
=
"
青海换流站消防
预案"
)
@RuleMethod
(
methodLabel
=
"区域闪烁"
,
project
=
"
换流站消防专项
预案"
)
public
void
regionFlicker
(
@MethodParam
(
paramLabel
=
"bizobj对象"
)
Object
bizobj
,
@MethodParam
(
paramLabel
=
"闪烁频率"
)
Integer
frequency
)
public
void
regionFlicker
(
@MethodParam
(
paramLabel
=
"bizobj对象"
)
Object
bizobj
,
@MethodParam
(
paramLabel
=
"闪烁频率"
)
Integer
frequency
)
{
{
BubbleTipResult
result
=
new
BubbleTipResult
();
BubbleTipResult
result
=
new
BubbleTipResult
();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
Map
<
String
,
Object
>
tempmap1
=
new
HashMap
<>();
tempmap1
.
put
(
"bizobj"
,
bizobj
);
result
.
add
(
tempmap1
);
result
.
add
(
tempmap1
);
//更改颜色
//更改颜色
Map
<
String
,
Object
>
tempmap2
=
new
HashMap
<>();
Map
<
String
,
Object
>
tempmap2
=
new
HashMap
<>();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/model/ContingencyRo.java
View file @
206934cc
...
@@ -9,7 +9,7 @@ import com.yeejoin.amos.component.rule.RuleFact;
...
@@ -9,7 +9,7 @@ import com.yeejoin.amos.component.rule.RuleFact;
import
lombok.Data
;
import
lombok.Data
;
@RuleFact
(
value
=
"动态预案"
,
project
=
"
青海换流站消防
预案"
)
@RuleFact
(
value
=
"动态预案"
,
project
=
"
换流站消防专项
预案"
)
@Data
@Data
public
class
ContingencyRo
implements
Serializable
{
public
class
ContingencyRo
implements
Serializable
{
@Label
(
"批次号"
)
@Label
(
"批次号"
)
...
@@ -17,7 +17,7 @@ public class ContingencyRo implements Serializable {
...
@@ -17,7 +17,7 @@ public class ContingencyRo implements Serializable {
/**
/**
*
*
*/
*/
private
static
final
long
serialVersionUID
=
-
8687517896814257800
L
;
private
static
final
long
serialVersionUID
=
1863437780244849215
L
;
@Label
(
"消防设备名称"
)
@Label
(
"消防设备名称"
)
private
String
fireEquipmentName
;
//消防设备名称
private
String
fireEquipmentName
;
//消防设备名称
@Label
(
"消防设备id"
)
@Label
(
"消防设备id"
)
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/model/DeviceRo.java
View file @
206934cc
...
@@ -7,7 +7,7 @@ import com.yeejoin.amos.component.rule.RuleFact;
...
@@ -7,7 +7,7 @@ import com.yeejoin.amos.component.rule.RuleFact;
import
lombok.Data
;
import
lombok.Data
;
@RuleFact
(
value
=
"设备数据"
,
project
=
"
青海换流站消防
预案"
)
@RuleFact
(
value
=
"设备数据"
,
project
=
"
换流站消防专项
预案"
)
@Data
@Data
public
class
DeviceRo
implements
Serializable
{
public
class
DeviceRo
implements
Serializable
{
/**
/**
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/SafetyController.java
View file @
206934cc
...
@@ -57,7 +57,7 @@ public class SafetyController extends BaseController{
...
@@ -57,7 +57,7 @@ public class SafetyController extends BaseController{
RequestContext
.
setToken
(
token
);
RequestContext
.
setToken
(
token
);
RequestContext
.
setProduct
(
product
);
RequestContext
.
setProduct
(
product
);
RequestContext
.
setAppKey
(
appKey
);
RequestContext
.
setAppKey
(
appKey
);
Object
o
=
ruleTrigger
.
publish
(
newFact
,
"
青海换流站消防
预案/test"
,
ArrayUtils
.
toArray
());
Object
o
=
ruleTrigger
.
publish
(
newFact
,
"
换流站消防专项
预案/test"
,
ArrayUtils
.
toArray
());
return
CommonResponseUtil
.
success
(
o
);
return
CommonResponseUtil
.
success
(
o
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/config/PermissionAspect.java
View file @
206934cc
...
@@ -96,8 +96,11 @@ public class PermissionAspect {
...
@@ -96,8 +96,11 @@ public class PermissionAspect {
break
;
break
;
}
}
}
}
ReginParams
reginParams
=
JSON
.
parseObject
(
redisTemplate
.
opsForValue
().
get
(
buildKey
(
userModel
.
getUserId
(),
token
)),
ReginParams
.
class
);
// if(redisTemplate.hasKey(buildKey(userModel.getUserId(), token))){
if
(
reginParams
==
null
&&
userModel
.
getCompanys
().
size
()
>
0
){
// ReginParams reginParams = JSON.parseObject(redisTemplate.opsForValue().get(buildKey(userModel.getUserId(), token)), ReginParams.class);
// }
if
(!
redisTemplate
.
hasKey
(
buildKey
(
userModel
.
getUserId
(),
token
))
&&
userModel
.
getCompanys
().
size
()
>
0
){
CompanyModel
companyModel
=
userModel
.
getCompanys
().
get
(
0
);
CompanyModel
companyModel
=
userModel
.
getCompanys
().
get
(
0
);
List
<
DepartmentModel
>
deptList
=
remoteSecurityService
.
getDepartmentTreeByCompanyId
(
token
,
product
,
appKey
,
companyModel
.
getSequenceNbr
().
toString
());
List
<
DepartmentModel
>
deptList
=
remoteSecurityService
.
getDepartmentTreeByCompanyId
(
token
,
product
,
appKey
,
companyModel
.
getSequenceNbr
().
toString
());
...
...
YeeAmosFireAutoSysStart/src/main/resources/application.properties
View file @
206934cc
spring.application.name
=
A
mos-autosys
spring.application.name
=
A
MOS-AUTOSYS
server.port
=
8083
server.port
=
8083
...
@@ -47,7 +47,7 @@ spring.servlet.multipart.max-request-size=20MB
...
@@ -47,7 +47,7 @@ spring.servlet.multipart.max-request-size=20MB
visual.fegin.name
=
maas-visual
visual.fegin.name
=
maas-visual
dutyMode.fegin.name
=
AMOSDUTYMODE
dutyMode.fegin.name
=
AMOSDUTYMODE
#队站装备管理名称,主要用于风险区域同步至仓库货位
#队站装备管理名称,主要用于风险区域同步至仓库货位
equipManage.fegin.name
=
AMOS-EQUIPMANAGE
-ZZY
equipManage.fegin.name
=
AMOS-EQUIPMANAGE
#是否开启将风险区域同步至仓库货位true开启,false关闭。默认关闭。
#是否开启将风险区域同步至仓库货位true开启,false关闭。默认关闭。
equipManage.fegin.isSyn
=
false
equipManage.fegin.isSyn
=
false
...
...
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