Commit 285cb763 authored by suhuiguang's avatar suhuiguang

1.应急处置

parent 1b34c82b
...@@ -89,11 +89,11 @@ public class FireEquipmentSignalLogDto extends BaseDto { ...@@ -89,11 +89,11 @@ public class FireEquipmentSignalLogDto extends BaseDto {
@ApiModelProperty(value = "纬度") @ApiModelProperty(value = "纬度")
private String lat; private String lat;
@ApiModelProperty(value = "换流站经度") @ApiModelProperty(value = "位置经度")
private String stationLng; private String sourceLng;
@ApiModelProperty(value = "换流站纬度") @ApiModelProperty(value = "位置纬度")
private String stationLat; private String sourceLat;
@ApiModelProperty(value = "告警日期(冗余查询,为create_date的日期部分,如:2021-11-15") @ApiModelProperty(value = "告警日期(冗余查询,为create_date的日期部分,如:2021-11-15")
private String signalReportDate; private String signalReportDate;
......
...@@ -12,20 +12,21 @@ ...@@ -12,20 +12,21 @@
a.signal_type_name, a.signal_type_name,
a.create_date, a.create_date,
s.name as station_name, s.name as station_name,
a.station_code,
a.location, a.location,
<choose> <choose>
<when test="stationCode != null and stationCode != ''"> <when test="stationCode != null and stationCode != ''">
a.lat, a.lat,
a.lng, a.lng,
null as station_code,
</when> </when>
<otherwise> <otherwise>
s.lng, s.lng,
s.lat, s.lat,
a.station_code,
</otherwise> </otherwise>
</choose> </choose>
s.lat as stationLat, a.lat as sourceLat,
s.lng as stationLng a.lng as sourceLng
from from
asf_fire_equipment_signal_log a, asf_fire_equipment_signal_log a,
asf_fire_station_info s asf_fire_station_info s
...@@ -44,6 +45,9 @@ ...@@ -44,6 +45,9 @@
<if test="endDate != null and endDate != ''"> <if test="endDate != null and endDate != ''">
and DATEDIFF(a.create_date,#{endDate}) <![CDATA[<=]]> 0 and DATEDIFF(a.create_date,#{endDate}) <![CDATA[<=]]> 0
</if> </if>
<if test="sourceId != null and sourceId != ''">
and a.id = #{sourceId}
</if>
order by a.create_date desc order by a.create_date desc
<if test="top != null"> <if test="top != null">
limit ${top} limit ${top}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment