|
|
|
|
@ -26,7 +26,8 @@ |
|
|
|
|
FROM |
|
|
|
|
traceability_scan_record t1 |
|
|
|
|
LEFT JOIN traceability_product t2 on t1.product_id=t2.id |
|
|
|
|
LEFT JOIN traceability_agricultural_product t3 on t2.cropper_id =t3.id |
|
|
|
|
LEFT JOIN traceability_cropper t4 on t2.cropper_id=t4.id |
|
|
|
|
LEFT JOIN traceability_agricultural_product t3 on t4.product_id =t3.id |
|
|
|
|
WHERE t2.source_type =1 and t1.deleted =0 |
|
|
|
|
ORDER BY `value` |
|
|
|
|
LIMIT 5 |
|
|
|
|
|