Ver Fonte

工单排成

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

+ 1 - 3
application/api/controller/Manufacture.php

@@ -223,13 +223,11 @@ class Manufacture extends Api
                     'rtrim(a.Uniqid)' => 'GDUID',
                 ])
                 ->join('工单_工艺资料 b', 'a.Gd_gdbh = b.Gy0_gdbh')
-                ->join('产品_基本资料 c', 'a.Gd_cpdh = c.产品编号')
                 ->where([
                     'a.gd_statu' => '2-生产中',
                     'a.行号' => '1',
                     'b.PD_WG' => '1900-01-01 00:00:00',
                     'b.Gy0_sj1' => ['<>', '1900-01-01 00:00:00'],
-                    'c.状态' => '',
                 ])
                 ->where($where)
                 ->group('a.Gd_gdbh')
@@ -813,7 +811,7 @@ class Manufacture extends Api
                 'b.PD_WG' => '1900-01-01 00:00:00',
             ])
             ->where($where)
-            ->group('a.Gd_gdbh,b.Gy0_gxh')
+            ->group('a.Gd_gdbh,b.Gy0_yjno,b.Gy0_gxh')
             ->order('Gy0_sj1')
             ->select();
         if (empty($list)){