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
9f3de39b
Commit
9f3de39b
authored
Nov 25, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
52d4665a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
3 deletions
+27
-3
EquipmentSpecificAlarmLog.java
.../equipmanage/common/entity/EquipmentSpecificAlarmLog.java
+8
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+2
-0
wl-3.6.0.xml
...ot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
+13
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+4
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecificAlarmLog.java
View file @
9f3de39b
...
@@ -234,4 +234,12 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
...
@@ -234,4 +234,12 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
@ApiModelProperty
(
value
=
"机构编码"
)
@ApiModelProperty
(
value
=
"机构编码"
)
@TableField
(
value
=
"biz_org_code"
)
@TableField
(
value
=
"biz_org_code"
)
private
String
bizOrgCode
;
private
String
bizOrgCode
;
@ApiModelProperty
(
value
=
"站名称"
)
@TableField
(
value
=
"station_name"
)
private
String
stationName
;
@ApiModelProperty
(
value
=
"站编码"
)
@TableField
(
value
=
"station_code"
)
private
String
stationCode
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
9f3de39b
...
@@ -843,6 +843,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -843,6 +843,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
equipmentSpecificAlarmLog
.
setId
(
null
);
equipmentSpecificAlarmLog
.
setId
(
null
);
equipmentSpecificAlarmLog
.
setCreateDate
(
new
Date
());
equipmentSpecificAlarmLog
.
setCreateDate
(
new
Date
());
equipmentSpecificAlarmLog
.
setEquipmentSpecificAlarmId
(
equipmentSpecificAlarm
.
getId
());
equipmentSpecificAlarmLog
.
setEquipmentSpecificAlarmId
(
equipmentSpecificAlarm
.
getId
());
equipmentSpecificAlarmLog
.
setStationCode
(
stationCode
);
equipmentSpecificAlarmLog
.
setStationName
(
stationName
);
boolean
bool
=
equipmentSpecificAlarmLogService
.
save
(
equipmentSpecificAlarmLog
);
boolean
bool
=
equipmentSpecificAlarmLogService
.
save
(
equipmentSpecificAlarmLog
);
// 同步告警消息给平台
// 同步告警消息给平台
if
(
amosSwitch
&&
bool
)
{
if
(
amosSwitch
&&
bool
)
{
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
View file @
9f3de39b
...
@@ -450,4 +450,16 @@
...
@@ -450,4 +450,16 @@
END#
END#
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"keyong"
id=
"1668587041"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"wl_equipment_specific_alarm_log"
columnName=
"station_name"
/>
</not>
</preConditions>
<comment>
新增站属性字段
</comment>
<sql>
ALTER TABLE `wl_equipment_specific_alarm_log` ADD COLUMN `station_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '换流站名称';
ALTER TABLE `wl_equipment_specific_alarm_log` ADD COLUMN `station_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '换流站编码';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
9f3de39b
...
@@ -283,8 +283,8 @@
...
@@ -283,8 +283,8 @@
) createDate,
) createDate,
wlesal.equipment_specific_name as equipmentSpecificName,
wlesal.equipment_specific_name as equipmentSpecificName,
wlesal.location,
wlesal.location,
wlesal.
biz_org_code AS bizOrg
Code,
wlesal.
station_code AS station
Code,
wlesal.
biz_org_name AS bizOrg
Name
wlesal.
station_name AS station
Name
FROM wl_equipment_specific_alarm_log wlesal
FROM wl_equipment_specific_alarm_log wlesal
<where>
<where>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND wlesal.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND wlesal.type = #{param.alarmType}
</if>
...
@@ -1372,7 +1372,8 @@
...
@@ -1372,7 +1372,8 @@
location,
location,
emergency_level_color,
emergency_level_color,
IF
IF
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
wlesal.station_name AS sationName
FROM
FROM
`wl_equipment_specific_alarm_log` `wlesal`
`wl_equipment_specific_alarm_log` `wlesal`
LEFT JOIN `wl_equipment_specific` `wles` ON `wlesal`.`equipment_specific_id` = `wles`.`id`
LEFT JOIN `wl_equipment_specific` `wles` ON `wlesal`.`equipment_specific_id` = `wles`.`id`
...
...
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