SELECT
iap.id,
iap.name,
iap.type,
iap.is_register,
iap.oper_name,
iap.regist_capi,
iap.econ_kind,
iap.nation,
iap.user_name,
iap.status,
iap.position,
iap.phone,
iap.qq,
iap.email,
iap.site,
iap.persons,
iap.is_compliance,
iap.pre_year_value,
iap.start_date,
iap.end_date,
iap.apply_area,
iap.profile,
iap.scope,
iap.advantage,
iap.reason,
iap.memo,
iap.create_user_id,
iap.create_by,
iap.create_time,
iap.update_by,
iap.update_time,
iap.version,
iap.delete_flag,
iap.tenant_id,
iap.park_id,
iap.remark,
iapf.id AS file_id,
iapf.file_name,
iapf.file_path
FROM
ics_apply_park iap
LEFT JOIN ics_apply_park_file iapf
ON iap.id = iapf.apply_park_id
SELECT
iap.id,
iap.name,
iap.type,
iap.is_register,
iap.oper_name,
iap.regist_capi,
iap.econ_kind,
iap.nation,
iap.user_name,
iap.status,
iap.position,
iap.phone,
iap.qq,
iap.email,
iap.site,
iap.persons,
iap.is_compliance,
iap.pre_year_value,
iap.start_date,
iap.end_date,
iap.apply_area,
iap.profile,
iap.scope,
iap.advantage,
iap.reason,
iap.memo,
iap.create_user_id,
iap.create_by,
iap.create_time,
iap.update_by,
iap.update_time,
iap.version,
iap.delete_flag,
iap.tenant_id,
iap.park_id,
iap.remark
FROM
ics_apply_park iap