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