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