zss
8 天以前 2c27abdc366d09cfa68f120ef22a1991dcf7a1ea
src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -37,6 +37,7 @@
        t1.sales_ledger_product_id,
        t1.create_user,
        t2.specification_model,
        t2.product_model_id,
        t2.unit,
        t2.tax_rate,
        t2.tax_inclusive_unit_price,
@@ -48,7 +49,7 @@
        t1.create_time,
        t1.update_time,
        t1.create_by,
        t2.warn_num
        ifnull(t1.warn_num, t2.warn_num) as warnNum
        from  procurement_record_storage t1
                  left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id
                  left join purchase_ledger t3 on t3.id = t2.sales_ledger_id
@@ -107,7 +108,7 @@
        t1.create_time,
        t1.update_time,
        t1.create_by,
        t2.warn_num
        ifnull(t1.warn_num, t2.warn_num) as warnNum
        from  procurement_record_storage t1
        left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id
        left join purchase_ledger t3 on t3.id = t2.sales_ledger_id