|
@@ -189,10 +189,12 @@ ORDER by pz
|
189
|
189
|
a.org_name,
|
190
|
190
|
a.longitude,
|
191
|
191
|
a.latitude,
|
192
|
|
- ROUND(IFNULL(SUM(kcsl),0.0)/1000/10000,2) as kcsl
|
|
192
|
+ ROUND(IFNULL(SUM(kcsl),0.0)/1000/10000,2) as kcsl,
|
|
193
|
+ GROUP_CONCAT(DISTINCT b.hwxz) as hwxz
|
193
|
194
|
FROM
|
194
|
195
|
depot_qh.org_info a
|
195
|
|
- LEFT JOIN depot_qh.data_kcgl_kcsw_default b on a.org_id = b.UnitID
|
|
196
|
+ LEFT JOIN depot_qh.data_kcgl_kcsw_default b on a.org_id = b.UnitID and b.hwxz in (6877,6878,6879)
|
|
197
|
+ /* 只要省储,市储,县储*/
|
196
|
198
|
where a.org_id != '9'
|
197
|
199
|
GROUP BY a.org_id
|
198
|
200
|
ORDER BY a.org_id
|