1.修改sql

main
862857010@qq.com 2 years ago
parent d3c55bfced
commit 533af1bc17
  1. 3
      cjy-module-traceability/cjy-module-traceability-biz/src/main/resources/mapper/scanrecord/ScanRecordMapper.xml

@ -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

Loading…
Cancel
Save