|
@@ -396,8 +396,8 @@ class PrintingPlate extends Api
|
|
|
->join('工单_基本资料 b', 'a.Yb_工单编号 = b.Gd_gdbh','left')
|
|
->join('工单_基本资料 b', 'a.Yb_工单编号 = b.Gd_gdbh','left')
|
|
|
->where('a.Yb_存货编码',$param['code'])
|
|
->where('a.Yb_存货编码',$param['code'])
|
|
|
->where('a.Yb_供方批号',$param['batch'])
|
|
->where('a.Yb_供方批号',$param['batch'])
|
|
|
- ->order('a.Yb_领用日期 desc')
|
|
|
|
|
- ->group('a.Yb_工单编号')
|
|
|
|
|
|
|
+ ->order('a.UniqID desc')
|
|
|
|
|
+ ->group('a.Yb_工单编号,a.Yb_印件号,a.UniqID')
|
|
|
->select();
|
|
->select();
|
|
|
if (empty($list)){
|
|
if (empty($list)){
|
|
|
$this->error('未找到领用记录');
|
|
$this->error('未找到领用记录');
|