1.修改sql

main
862857010@qq.com 2 years ago
parent 898f25973d
commit 4704ebd193
  1. 2
      cjy-module-traceability/cjy-module-traceability-biz/src/main/resources/mapper/product/ProductMapper.xml

@ -121,7 +121,7 @@
<select id="getSelfOroducedProductsAndInventory" resultType="java.util.Map">
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
where t1.deleted = 0

Loading…
Cancel
Save