| | |
| | | and a.id in(select siteId from t_line_site where lineId in(select lineId from t_line_site where siteId = #{startSiteId} and type = 1) and type = 2) |
| | | </if> |
| | | </select> |
| | | <select id="querySite_" resultType="map"> |
| | | select * from |
| | | ( |
| | | select id as id, `name` as `name`, provinceCode as cityCode, province as cityName from t_site where province like '%市' and state = 1 |
| | | UNION ALL |
| | | select id as id, `name` as `name`, cityCode as cityCode, city as cityName from t_site where province not like '%市' and state = 1 |
| | | ) as a where 1 = 1 |
| | | <if test="null != startSiteId"> |
| | | and a.id in(select siteId from t_line_site where lineId in(select lineId from t_line_site where siteId = #{startSiteId} and type = 1) and (type = 2 or type = 3)) |
| | | </if> |
| | | </select> |
| | | </mapper> |