src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
@@ -26,9 +26,10 @@ T1.is_production, T1.create_user, T1.dept_id, p.product_name as product_category, pm.model as specification_model, pm.unit as unit, COALESCE(NULLIF(T1.product_category, ''), p.product_name) as product_category, T1.material, COALESCE(NULLIF(T1.specification_model, ''), pm.model) as specification_model, COALESCE(NULLIF(T1.unit, ''), pm.unit) as unit, CASE WHEN (IFNULL(t2.qualitity, 0) - IFNULL(t2.locked_quantity, 0)) >0 THEN 1 ELSE 0