2 天以前 f350465db70d6f9db9494483ee0cec7793a9007b
src/main/resources/mapper/production/ProductProcessMapper.xml
@@ -25,7 +25,7 @@
        pp.name AS processName,
        SUM(pi.quantity) AS totalInput,
        SUM(distinct ppo.scrap_qty) AS totalScrap,
        SUM(distinct (ppo.quantity - ppo.scrap_qty)) AS totalOutput
        SUM(distinct (ppo.quantity + IFNULL(ppo.add_qty, 0))) AS totalOutput
        FROM
        production_product_output ppo
        INNER JOIN production_product_main ppm ON ppo.product_main_id = ppm.id