select t1.id, t1.processing_name as processingName,t1.inventory_production as inventoryProduction,t1.batch,t1.traceability_code as traceabilityCode
select t1.processing_name as processingName,t1.inventory_production as inventoryProduction,t1.batch,t1.traceability_code as traceabilityCode,t1.id as cropperId
from traceability_product t1
left join traceability_agricultural_product t2 on t1.cropper_id = t2.id