廖井涛
2025-12-19 1e6c537c6ae83a30fa3732939d16422ff2d105dd
north-glass-erp/src/main/resources/mapper/sd/OrderProcessDetailMapper.xml
@@ -79,7 +79,7 @@
                            when 'stepD' then 4
                            when 'stepB' then 4
                            else 1
                     end as sort,
                     end as sortByprocess,
                    b.sort as 'sort2'
@@ -101,7 +101,7 @@
                                                    group by opd.id) as a
                    GROUP BY process)   as sort1
        on sort1.process = a.process
        order by sort,sort2,sort1.count,id
        order by sortByprocess,sort1.count,sort2,id
    </select>