select lr.id,lr.name,lr.code,sd.name as 'type',lr.address_code,lr.port,lr.ajj_port,lr.username,lr.password,lr.deploy_location,lr.line_name,lr.station_name,lr.sub_system,
select lr.id,lr.name,lr.code,sd.name as 'type',lr.address_code,lr.port,lr.ajj_port,lr.username,lr.password,lr.deploy_location,lr.station_name,lr.sub_system,
ls.id,ls.line_id as lineId,ls.line_name as lineName,ls.station_name as stationName,ls.type,ls.is_master as isMaster,ls.code,ls.byx1,ls.byx2,ls.short_name as shortName, sst.id as takeoverId,
ls.id,ls.station_name as stationName,ls.type,ls.is_master as isMaster,ls.code,ls.byx1,ls.byx2,ls.short_name as shortName, sst.id as takeoverId,
case when sst.status=2 AND sst.apply_type=1 then 2
when sst.status=2 AND sst.apply_type=2 then 3
ELSE 1 end AS runStatus,sst.status AS takeoverStatus
...
...
@@ -165,8 +159,6 @@
left join sys_station_takeover sst on sst.station_id=ls.id AND sst.deleted=0 AND sst.valids=1
where ls.deleted=0
<iftest="id!=null and id!=''">and ls.id = #{id}</if>
<iftest="lineId!=null and lineId!=''">and ls.line_id = #{lineId}</if>
<iftest="lineName!=null and lineName!=''">and ls.line_name = #{lineName}</if>
<iftest="stationName!=null and stationName!=''">and ls.station_name = #{stationName}</if>
<iftest="code!=null and code!=''">and ls.code = #{code}</if>
<iftest="shortName!=null and shortName!=''">and ls.short_name = #{shortName}</if>
...
...
@@ -196,11 +188,6 @@
<iftest="lineColor!=null and lineColor!=''">and ls.line_color = #{lineColor}</if>
<iftest="lineCode!=null and lineCode!=''">and ls.line_code = #{lineCode}</if>