소스 검색

排程制程工单显示

qiuenguang 1 년 전
부모
커밋
b1f47b3b45
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)){