Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
0ebbadfa
Commit
0ebbadfa
authored
May 31, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改建筑树bug
parent
0f9bbc4e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
18 deletions
+12
-18
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+3
-4
StockServiceImpl.java
...om/yeejoin/equipmanage/service/impl/StockServiceImpl.java
+6
-11
AnalysisReportLogMapper.xml
...uip/src/main/resources/mapper/AnalysisReportLogMapper.xml
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
0ebbadfa
...
@@ -865,10 +865,10 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -865,10 +865,10 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
}
}
// 报警表新增信息
// 报警表新增信息
if
(
ObjectUtils
.
isEmpty
(
indexAlarms
)
&&
(
TrueOrFalseEnum
.
real
.
value
.
equals
(
equipmentSpcIndex
.
getValue
())))
{
if
(
ObjectUtils
.
isEmpty
(
indexAlarms
)
&&
(
TrueOrFalseEnum
.
real
.
value
.
equals
(
equipmentSpcIndex
.
getValue
())))
{
addEquipmentSpecificAlarm
(
equipmentSpecificAlarms
,
equipmentSpcIndex
,
equipmentSpecificAlarm
);
equipmentSpecificAlarms
=
addEquipmentSpecificAlarm
(
equipmentSpecificAlarms
,
equipmentSpcIndex
,
equipmentSpecificAlarm
);
}
else
{
}
else
{
// 报警表更新信息
// 报警表更新信息
indexAlarms
.
forEach
(
action
->
{
for
(
EquipmentSpecificAlarm
action
:
indexAlarms
)
{
if
(
TrueOrFalseEnum
.
real
.
value
.
equals
(
equipmentSpcIndex
.
getValue
()))
{
if
(
TrueOrFalseEnum
.
real
.
value
.
equals
(
equipmentSpcIndex
.
getValue
()))
{
// 报警,修改发生频率
// 报警,修改发生频率
action
.
setFrequency
((
action
.
getFrequency
()
+
1
));
action
.
setFrequency
((
action
.
getFrequency
()
+
1
));
...
@@ -887,9 +887,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -887,9 +887,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
// 冗余字段,alarm_log表更新时使用
// 冗余字段,alarm_log表更新时使用
action
.
setEquipmentSpecificCode
(
equipmentSpcIndex
.
getEquipmentSpecificCode
());
action
.
setEquipmentSpecificCode
(
equipmentSpcIndex
.
getEquipmentSpecificCode
());
equipmentSpecificAlarms
.
add
(
action
);
equipmentSpecificAlarms
.
add
(
action
);
}
)
;
};
}
}
return
equipmentSpecificAlarms
;
return
equipmentSpecificAlarms
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/StockServiceImpl.java
View file @
0ebbadfa
...
@@ -489,17 +489,6 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
...
@@ -489,17 +489,6 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
relationRedisUtil
.
delSysRedisKey
(
fireFightSysIdsBuffer
.
toString
());
relationRedisUtil
.
delSysRedisKey
(
fireFightSysIdsBuffer
.
toString
());
}
}
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
@Override
public
void
afterCommit
()
{
List
<
EquipmentSpecificVo
>
data
=
equipmentSpecificMapper
.
getEquipOrCarByIotCode
(
null
);
if
(
redisUtils
.
hasKey
(
"equipAndCarIotCodes"
))
{
redisUtils
.
del
(
"equipAndCarIotCodes"
);
}
redisUtils
.
set
(
"equipAndCarIotCodes"
,
JSONObject
.
toJSONString
(
data
));
}
});
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
//处理异常 返回 成功失败条数
//处理异常 返回 成功失败条数
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -511,6 +500,12 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
...
@@ -511,6 +500,12 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
String
[]
split
=
errBufferName
.
toString
().
split
(
","
);
String
[]
split
=
errBufferName
.
toString
().
split
(
","
);
String
date
=
"上传成功:"
+(
equipmentDetailDownloadVOS
.
size
()-(
split
!=
null
?
split
.
length
:
0
))+
"条---上传失败:"
+(
split
!=
null
?
split
.
length
:
0
)+
"条(失败编号:"
+
errBufferName
+
"详情:"
+
erryy
+
")"
;
String
date
=
"上传成功:"
+(
equipmentDetailDownloadVOS
.
size
()-(
split
!=
null
?
split
.
length
:
0
))+
"条---上传失败:"
+(
split
!=
null
?
split
.
length
:
0
)+
"条(失败编号:"
+
errBufferName
+
"详情:"
+
erryy
+
")"
;
log
.
error
(
date
);
log
.
error
(
date
);
// 刷新redis中iotCode值
List
<
EquipmentSpecificVo
>
data
=
equipmentSpecificMapper
.
getEquipOrCarByIotCode
(
null
);
if
(
redisUtils
.
hasKey
(
"equipAndCarIotCodes"
))
{
redisUtils
.
del
(
"equipAndCarIotCodes"
);
}
redisUtils
.
set
(
"equipAndCarIotCodes"
,
JSONObject
.
toJSONString
(
data
));
return
date
;
return
date
;
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/AnalysisReportLogMapper.xml
View file @
0ebbadfa
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</select>
</select>
<select
id=
"getStation"
resultType=
"Map"
>
<select
id=
"getStation"
resultType=
"Map"
>
SELECT * FROM cb_org_usr WHERE biz_org_code = #{stationCode}
SELECT * FROM cb_org_usr WHERE biz_org_code = #{stationCode}
AND biz_org_type = 'COMPANY'
</select>
</select>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
0ebbadfa
...
@@ -265,7 +265,7 @@
...
@@ -265,7 +265,7 @@
( select id from wl_warehouse_structure where parent_id in(
( select id from wl_warehouse_structure where parent_id in(
select id from wl_warehouse_structure where parent_id = #{instanceId})
select id from wl_warehouse_structure where parent_id = #{instanceId})
union
union
select id from wl_warehouse_structure where parent_id = #{instanceId}or
select id from wl_warehouse_structure where parent_id = #{instanceId}
or
id = #{instanceId} )
id = #{instanceId} )
</if>
</if>
) as da
) as da
...
@@ -308,7 +308,7 @@
...
@@ -308,7 +308,7 @@
select id from wl_warehouse_structure where parent_id in(
select id from wl_warehouse_structure where parent_id in(
select id from wl_warehouse_structure where parent_id = #{instanceId})
select id from wl_warehouse_structure where parent_id = #{instanceId})
union
union
select id from wl_warehouse_structure where parent_id = #{instanceId}or
select id from wl_warehouse_structure where parent_id = #{instanceId}
or
id = #{instanceId}
id = #{instanceId}
)
)
</if>
</if>
...
...
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