|
|
@@ -934,15 +934,13 @@ class WorkOrderVerification extends Api
|
|
|
';
|
|
|
$where['a.qczl_gdbh'] = $params['order'];
|
|
|
$where['a.qczl_yjno'] = $params['yjno'];
|
|
|
-// $where['b.行号'] = 1;
|
|
|
$data = db('db_qczl')->alias('a')
|
|
|
- ->join('工单_基本资料 b','a.qczl_gdbh = b.Gd_gdbh','left')
|
|
|
- ->join('工单_印件资料 c','a.qczl_gdbh = c.Yj_Gdbh','left')
|
|
|
- ->join('成品入仓 d','a.qczl_gdbh = d.jjcp_gdbh','left')
|
|
|
+ ->join('工单_基本资料 b','a.qczl_gdbh = b.Gd_gdbh AND a.qczl_yjno = b.行号','left')
|
|
|
+ ->join('工单_印件资料 c','a.qczl_gdbh = c.Yj_Gdbh AND a.qczl_yjno = c.yj_Yjno','left')
|
|
|
+ ->join('成品入仓 d','a.qczl_gdbh = d.jjcp_gdbh AND a.qczl_yjno = d.jjcp_yjno','left')
|
|
|
->where($where)
|
|
|
->field($field)
|
|
|
-// ->where('a.qczl_yjno','1')
|
|
|
- ->group('qczl_yjno,qczl_num')
|
|
|
+ ->group('a.qczl_yjno,a.sys_rq')
|
|
|
->select();
|
|
|
$list = [];
|
|
|
$j = 0;
|