liyong
2026-05-09 67fda7b2dfbfc9e6a8d8b9472499a67906d2bad1
src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -34,11 +34,14 @@
               date(ppm.create_time) as schedulingDate,
               su.nick_name as schedulingUserName,
               po_sales.customerName,
               poro.operation_name as process
               poro.operation_name as process,
               t5.id as workshop_id,
               t5.name as workshop_name
        from production_product_main ppm
                 left join production_operation_task pot on ppm.production_operation_task_id = pot.id
                 left join production_order po on pot.production_order_id = po.id
                 left join production_order_routing_operation poro on pot.production_order_routing_operation_id = poro.id
                 left join workshop as t5 on po.workshop_id = t5.id
                 left join (
            select po2.id as orderId,
                   group_concat(distinct sl2.sales_contract_no order by sl2.sales_contract_no separator ',') as salesContractNo,
@@ -113,7 +116,9 @@
                            end
                   end
                   as decimal(18,4)
               ) as wages
               ) as wages,
                t10.id as workshop_id,
                t10.name as workshop_name
        from production_account pa
                 left join production_product_main ppm on ppm.id = pa.production_product_main_id
                 left join production_operation_task pot on ppm.production_operation_task_id = pot.id
@@ -123,6 +128,7 @@
                 left join product p on pm.product_id = p.id
                 left join product p_parent on p_parent.id = p.parent_id
                 left join production_product_output ppo on ppo.production_product_main_id = ppm.id
                 left join workshop as t10 on po.workshop_id = t10.id
        <where>
            <if test="c != null">
                <if test="c.productCategory != null and c.productCategory != ''">