소스 검색

印版领用记录

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('未找到领用记录');