refactor(mapper): 修改告警相关查询中的位置字段别名
- 将 EmsAlarmDeviceMapper.xml 中的 location_name 别名修改为 name- 将 EmsAlarmRecordMapper.xml 中的 location_name 别名修改为 name - 统一位置信息字段引用方式,提升代码一致性
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
d.update_time,
|
||||
d.del_flag,
|
||||
d.remark,
|
||||
l.location_name AS locationName
|
||||
l.name AS locationName
|
||||
FROM
|
||||
ems_alarm_device d
|
||||
LEFT JOIN ems_location l ON d.location_id = l.location_id
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
d.device_name AS deviceName,
|
||||
d.device_code AS deviceCode,
|
||||
d.device_type AS deviceType,
|
||||
l.location_name AS locationName
|
||||
l.name AS locationName
|
||||
FROM
|
||||
ems_alarm_record r
|
||||
LEFT JOIN ems_alarm_device d ON r.device_id = d.device_id
|
||||
|
||||
Reference in New Issue
Block a user