liyong
2026-03-09 aac591782bef5f9eedbd96ed3de8c4c7a0967776
src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -258,7 +258,7 @@
        t2.warn_num,
        t2.product_id
        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_product t2 on t2.id = t1.sales_ledger_product_id and t2.type = 3
        left join sales_ledger t3 on t3.id = t2.sales_ledger_id
        <where>
            t1.type = 2 and t1.sales_ledger_product_id != 0