huminmin
7 天以前 80a04fa0885cbbe4de9ec59e1c64d8fd02bd5a95
src/main/resources/mapper/production/SalesLedgerProductionAccountingMapper.xml
@@ -18,11 +18,16 @@
        T1.customer_name,
        t3.product_category,
        t3.specification_model,
        t3.unit
        t3.unit,
        pm.material_code as materialCode
        FROM
        sales_ledger_production_accounting t4
        LEFT JOIN sales_ledger T1 ON T1.id = t4.sales_ledger_id
        left join sales_ledger_product t3 on t4.sales_ledger_product_id = t3.id
        LEFT JOIN production_product_main ppm ON t4.product_main_id = ppm.id
        LEFT JOIN product_work_order pwo ON ppm.work_order_id = pwo.id
        LEFT JOIN product_order po ON pwo.product_order_id = po.id
        LEFT JOIN sales_ledger T1 ON T1.id = po.sales_ledger_id
        LEFT JOIN sales_ledger_product t3 ON po.sale_ledger_product_id = t3.id
        LEFT JOIN product_model pm ON po.product_model_id = pm.id
        <where>
            t3.type = 1
            <if test="salesLedgerDto.schedulingUserName != null and salesLedgerDto.schedulingUserName != '' ">
@@ -68,7 +73,7 @@
        '%'
        ) as output_rate
        FROM sales_ledger_production_accounting slpa
        LEFT JOIN production_product_main ppm ON slpa.sales_ledger_work_id = ppm.id
        LEFT JOIN production_product_main ppm ON slpa.product_main_id = ppm.id
        LEFT JOIN production_product_output ppout ON ppm.id = ppout.product_main_id
        <where>
            <if test="ew.schedulingUserName != null and ew.schedulingUserName !=''">