Эх сурвалжийг харах

印版领用工单详情优化

unknown 8 сар өмнө
parent
commit
bef5637109

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

@@ -396,8 +396,8 @@ class PrintingPlate extends Api
             ->join('工单_基本资料 b', 'a.Yb_工单编号 = b.Gd_gdbh','left')
             ->where('a.Yb_存货编码',$param['code'])
             ->where('a.Yb_供方批号',$param['batch'])
-            ->order('a.Yb_领用日期 desc')
-            ->group('a.Yb_工单编号')
+            ->order('a.UniqID desc')
+            ->group('a.Yb_工单编号,a.Yb_印件号,a.UniqID')
             ->select();
         if (empty($list)){
             $this->error('未找到领用记录');