select t3.id as batchId,t5.employee_name as employeeName,t5.phone_number as employeePhone,t1.merchant_id as merchantNo,t1.phone_number as phoneNumber,t1.customer_name as customerName,
select t3.id as batchId,t5.employee_name as employeeName,t5.phone_number as employeePhone,t1.merchant_id as merchantNo,t1.phone_number as phoneNumber,t1.customer_name as customerName,
t1.car_model as carModel,t1.reception_start_time as startTime,t2.recording_url as fileUrl, t1.reception_end_time as endTime,t1.reception_status as receptionStatus,
t1.car_model as carModel,t1.reception_start_time as startTime,t2.recording_url as fileUrl, t1.reception_end_time as endTime,t1.reception_status as receptionStatus,
t1.car_brand as carBrandName, t1.car_brandid as carBrandId,
t2.recording_duration as totalDuration,t4.wghs_Status as violationStatus,t4.Violation_Reason_confim_time as violationReasonConfimTime,t1.bussiness_type as bussinessTypeName,t6.result_json as resultJson
t2.recording_duration as totalDuration,t4.wghs_Status as violationStatus,t4.Violation_Reason_confim_time as violationReasonConfimTime,t1.bussiness_type as bussinessTypeName,t6.result_json as resultJson
from reception_customer_info t1
from reception_customer_info t1
left join inspection_badge_recordings t2 on t1.id=t2.reception_id
left join inspection_badge_recordings t2 on t1.id=t2.reception_id
left join inspection_employee_badge t5 on t2.badge_id =t5.badge_id
left join inspection_employee_badge t5 on t2.badge_id =t5.badge_id
left join inspection_conversation_batch t3 on t2.id =t3.record_id
left join inspection_conversation_batch t3 on t2.id =t3.record_id
left join recording_batch_model_call_wghs t4 on t3.id =t4.batch_id
left join recording_batch_model_call_wghs t4 on t3.id =t4.batch_id
left join recording_batch_model_call t6 on (t6.recording_batch_id =t4.batch_id and t6.business_type=11)
left join recording_batch_model_call t6 on (t6.recording_batch_id =t4.batch_id and t6.business_type in (11,1107))
select t3.id as batchId,t5.employee_name as employeeName,t5.phone_number as employeePhone,t1.merchant_id as merchantNo,t1.phone_number as phoneNumber,t1.customer_name as customerName,
select t3.id as batchId,t5.employee_name as employeeName,t5.phone_number as employeePhone,t1.merchant_id as merchantNo,t1.phone_number as phoneNumber,t1.customer_name as customerName,
t1.car_model as carModel,t1.reception_start_time as startTime,t2.recording_url as fileUrl, t1.reception_end_time as endTime,t1.reception_status as receptionStatus,
t1.car_model as carModel,t1.reception_start_time as startTime,t2.recording_url as fileUrl, t1.reception_end_time as endTime,t1.reception_status as receptionStatus,
t1.car_brand as carBrandName, t1.car_brandid as carBrandId,
t2.recording_duration as totalDuration,t4.wghs_Status as violationStatus,t4.Violation_Reason_confim_time as violationReasonConfimTime,t1.bussiness_type as bussinessTypeName
t2.recording_duration as totalDuration,t4.wghs_Status as violationStatus,t4.Violation_Reason_confim_time as violationReasonConfimTime,t1.bussiness_type as bussinessTypeName
from reception_customer_info t1
from reception_customer_info t1
left join inspection_badge_recordings t2 on t1.id=t2.reception_id
left join inspection_badge_recordings t2 on t1.id=t2.reception_id