unknown 7 месяцев назад
Родитель
Сommit
d8912da6d8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      application/api/controller/PrintingPlate.php

+ 1 - 1
application/api/controller/PrintingPlate.php

@@ -137,7 +137,7 @@ class PrintingPlate extends Api
             ->join('工单_印版领用记录 c', 'a.存货编码 = c.Yb_存货编码 AND a.供方批号 = c.Yb_供方批号', 'LEFT')
             ->where($where)
             ->group('a.存货编码, a.供方批号')
-            ->order('a.报废日期, a.存货编码')  // 明确表别名
+            ->order('a.报废日期, a.存货编码 , a.供方批号')  // 明确表别名
             ->limit(($page - 1) * $limit, $limit);
 
         // 3. 累计印数计算优化:使用 LEFT JOIN 聚合结果