Explorar el Código

排程制程工单显示

qiuenguang hace 1 año
padre
commit
b1f47b3b45
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)){