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