a.quality_inspection_id, a.organization_id, a.organization_name, a.top_organization_id, a.quality_inspection_number, a.in_order_number, a.material_detail_id,
a.inspection_quantity, a.abnormal_quantity, a.quality_inspection_results, a.abnormal_reason, a.quality_inspection_by, a.quality_inspection_name,
a.quality_inspection_time, a.quality_inspection_url, a.handle_status, a.handle_opinion, a.handle_by, a.handle_by_name, a.handle_time, a.material_status_code,
a.material_status_name, a.abnormal_material_status_code, a.abnormal_material_status_name, a.warehousing, a.abnormal_handle_url, a.remark, a.create_time,
a.create_by, a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag
and a.organization_id = #{organizationId}
and a.organization_name like concat('%', #{organizationName}, '%')
and a.top_organization_id = #{topOrganizationId}
and a.quality_inspection_number = #{qualityInspectionNumber}
and a.material_detail_id = #{materialDetailId}
and a.inspection_quantity = #{inspectionQuantity}
and a.abnormal_quantity = #{abnormalQuantity}
and a.quality_inspection_results = #{qualityInspectionResults}
and a.abnormal_reason = #{abnormalReason}
and a.quality_inspection_by = #{qualityInspectionBy}
and a.quality_inspection_name like concat('%', #{qualityInspectionName}, '%')
and a.quality_inspection_time = #{qualityInspectionTime}
and a.quality_inspection_url = #{qualityInspectionUrl}
and a.handle_status = #{handleStatus}
and a.handle_opinion = #{handleOpinion}
and a.handle_by = #{handleBy}
and a.handle_by_name like concat('%', #{handleByName}, '%')
and a.handle_time = #{handleTime}
and a.material_status_code = #{materialStatusCode}
and a.material_status_name like concat('%', #{materialStatusName}, '%')
and a.abnormal_material_status_code = #{abnormalMaterialStatusCode}
and a.abnormal_material_status_name like concat('%', #{abnormalMaterialStatusName}, '%')
and a.warehousing = #{warehousing}
and a.abnormal_handle_url = #{abnormalHandleUrl}
and a.create_by_name like concat('%', #{createByName}, '%')
and a.update_by_name like concat('%', #{updateByName}, '%')
and a.del_flag = #{delFlag} and a.del_flag = 1
,b.in_order_number, b.warehouse_id, b.warehouse_code, b.warehouse_name, b.shipper_id, b.shipper_name
and b.in_order_number = #{inOrderNumber}
and b.warehouse_id = #{warehouseId}
and b.warehouse_code = #{warehouseCode}
and b.warehouse_name like concat('%', #{warehouseName}, '%')
and b.shipper_id = #{shipperId}
and b.shipper_name like concat('%', #{shipperName}, '%')
, c.material_base_info_id, c.material_code, c.material_name, c.quantity, c.receipt_quantity, c.quality_inspection_manage,
c.quality_inspection_stage, c.quality_inspection_rule, c.quality_inspection_ratio, c.quality_inspection_term
and c.order_number = #{orderNumber}
and c.material_base_info_id = #{materialBaseInfoId}
and c.material_code = #{materialCode}
and c.material_name like concat('%', #{materialName}, '%')
and c.quantity = #{quantity}
and c.receipt_quantity = #{receiptQuantity}
and c.shelves_quantity = #{shelvesQuantity}
and c.quality_inspection_manage = #{qualityInspectionManage}
and c.quality_inspection_stage = #{qualityInspectionStage}
and c.quality_inspection_rule = #{qualityInspectionRule}
and c.quality_inspection_term = #{qualityInspectionTerm}
and c.quality_inspection_ratio = #{qualityInspectionRatio}
and c.quality_inspection_results = #{qualityInspectionResults}