left join (select hygf_jp_inverter.sn_code, hygf_jp_inverter.third_station_id from hygf_jp_station left join hygf_jp_inverter on hygf_jp_station.third_station_id = hygf_jp_inverter.third_station_id) newTable on hygf_jp_station.third_station_id = newTable.third_station_id
<where>
<iftest="dto.name!=null">
and hygf_jp_station.name like concat(concat('%',#{dto.name}),'%')
...
...
@@ -706,6 +708,9 @@
<iftest="dto.amosCompanyCode!=null">
and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode}