Ver Fonte

排程制程工单显示

qiuenguang há 1 ano atrás
pai
commit
b1f47b3b45
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      application/api/controller/Manufacture.php

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

@@ -206,7 +206,7 @@ class Manufacture extends Api
 //                        ->where('b2.Gy0_gdbh = a.Gd_gdbh')
 //                        ->where('b2.Gy0_sj1 <> "1900-01-01 00:00:00"');
 //                })
-                ->group('a.Gd_gdbh')
+                ->group('a.Gd_gdbh,b.Gy0_yjno,b.Gy0_gxh')
                 ->select();
         }else{
             $list = db('工单_基本资料')->alias('a')
@@ -232,7 +232,7 @@ class Manufacture extends Api
                     'b.Gy0_sj1' => ['<>', '1900-01-01 00:00:00'],
                 ])
                 ->where($where)
-                ->group('a.Gd_gdbh')
+                ->group('a.Gd_gdbh,b.Gy0_yjno,b.Gy0_gxh')
                 ->select();
         }
         if (empty($list)){