left join jg_contract b on a.contract_id = b.id and b.delete_mark = '0'
left join jg_customer c on a.customer_id = c.id and c.delete_mark = '0'
where 1=1
and a.delete_mark = '0' and b.delete_mark = '0' and c.delete_mark = '0'
and a.delete_mark = '0'
/*添加权限*/
<iftest="saleorderitemPagination.departmentId != null and saleorderitemPagination.departmentId != ''">
AND a.department_id = #{saleorderitemPagination.departmentId}
@ -55,15 +55,15 @@
g.contract_no purchaseContractNo
FROM
jg_poundlist a
LEFT JOIN jg_vehicle b ON a.vehicle_id = b.id
LEFT JOIN jg_supplier c ON a.supplier_id = c.id
LEFT JOIN jg_customer d ON a.customer_id = d.id
LEFT JOIN jg_material e ON a.material_id = e.id
LEFT JOIN jg_contract f ON a.sales_id = f.id
LEFT JOIN jg_contract g ON a.purchase_id = g.id
LEFT JOIN base_user h ON a.business_id = h.f_id
LEFT JOIN jg_natural i ON a.natural_id = i.id
where a.delete_mark = '0' and b.delete_mark = '0' and c.delete_mark = '0' and d.delete_mark = '0' and e.delete_mark = '0' and f.delete_mark = '0' and g.delete_mark = '0' and i.delete_mark = '0'
LEFT JOIN jg_vehicle b ON a.vehicle_id = b.id and b.delete_mark = '0'
LEFT JOIN jg_supplier c ON a.supplier_id = c.id and c.delete_mark = '0'
LEFT JOIN jg_customer d ON a.customer_id = d.id and d.delete_mark = '0'
LEFT JOIN jg_material e ON a.material_id = e.id and e.delete_mark = '0'
LEFT JOIN jg_contract f ON a.sales_id = f.id and f.delete_mark = '0'
LEFT JOIN jg_contract g ON a.purchase_id = g.id and g.delete_mark = '0'
LEFT JOIN base_user h ON a.business_id = h.F_Id
LEFT JOIN jg_natural i ON a.natural_id = i.id and i.delete_mark = '0'
where a.delete_mark = '0'
and a.id = #{poundlistId}
</select>
@ -74,9 +74,9 @@ FROM
c.item_name materialName
FROM
jg_salesorder_item0 a
LEFT JOIN jg_vehicle b ON a.vehicle_id = b.id
LEFT JOIN jg_material c ON a.material_id = c.id
WHERE a.delete_mark = '0' and b.delete_mark = '0' and c.delete_mark = '0'
LEFT JOIN jg_vehicle b ON a.vehicle_id = b.id and b.delete_mark = '0'
LEFT JOIN jg_material c ON a.material_id = c.id and c.delete_mark = '0'
WHERE a.delete_mark = '0'
and a.sales_order_id = #{id}
</select>
@ -89,11 +89,11 @@ FROM
e.areaname areaName
FROM
jg_receiptout_item0 a
LEFT JOIN jg_vehicle b ON a.vehicle_id = b.id
LEFT JOIN jg_material c ON a.material_id = c.id
LEFT JOIN jg_warehouse d ON a.warehouse_id = d.id
LEFT JOIN jg_reservoirarea e ON a.reservoirarea_id = e.id
WHERE a.delete_mark = '0' and b.delete_mark = '0' and c.delete_mark = '0' and d.delete_mark = '0' and e.delete_mark = '0'
LEFT JOIN jg_vehicle b ON a.vehicle_id = b.id and b.delete_mark = '0'
LEFT JOIN jg_material c ON a.material_id = c.id and c.delete_mark = '0'
LEFT JOIN jg_warehouse d ON a.warehouse_id = d.id and d.delete_mark = '0'
LEFT JOIN jg_reservoirarea e ON a.reservoirarea_id = e.id and e.delete_mark = '0'