SELECT (case when a.DEPT_ID='depf0d1b4d89bf24badaf4728e110c1f4c3' then '成都高新(南)区' when a.DEPT_ID='depc08e3624825349edb9430204ba6f553b' then '成都高新(西)区' else
c.areaName end) as areaName,
a.TABLE_FORMAT_DATE,b.*
FROM
c_report_record a
LEFT JOIN yqfkzbzyb b ON a.data_id = b.id join area c on a.dept_id=c.dept_id
WHERE
TABLE_ID = '350dab4f-bd19-4498-aced-7e4a57949bd4' and a.TABLE_FORMAT_DATE= ?{TABLE_FORMAT_DATE} order by c.order_no