maven
4 天以前 164d1bace8b1fd0f1be79428b5b15df9c10bec72
src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -246,6 +246,7 @@
        t3.sales_contract_no,
        t3.customer_name,
        t2.product_category,
        group_concat(t1.id) as ids,
        t1.id,
        t1.sales_ledger_product_id,
        t1.create_user,
@@ -268,7 +269,7 @@
        from  procurement_record_storage t1
        left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id and t2.type = 1
        left join sales_ledger t3 on t3.id = t2.sales_ledger_id
        left join procurement_record_out t4 on t4.procurement_record_storage_id = t1.id and t1.type = 2
        left join procurement_record_out t4 on t4.procurement_record_storage_id = t1.id and t4.type = 2
        <where>
            t1.type = 2
            <if test="req.customerName != null and req.customerName != ''">