unknown преди 9 месеца
родител
ревизия
8be96d836c
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      application/api/controller/PrintingPlate.php

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

@@ -118,7 +118,7 @@ class PrintingPlate extends Api
             $where['b.物料名称'] = ['like', '%' . $params['search'] . '%'];
         }
 
-    
+
         $list = db('产品_印版库')
             ->alias('a')
             ->join('物料_存货编码 b', 'a.存货编码 = b.物料代码')
@@ -371,6 +371,7 @@ class PrintingPlate extends Api
             ->where('a.Yb_存货编码',$param['code'])
             ->where('a.Yb_供方批号',$param['batch'])
             ->order('a.Yb_领用日期 desc')
+            ->group('a.Yb_工单编号')
             ->select();
         if (empty($list)){
             $this->error('未找到领用记录');