|
@@ -560,12 +560,11 @@ class Inspect extends Api
|
|
|
}
|
|
}
|
|
|
array_push($gxmcs,'OR');
|
|
array_push($gxmcs,'OR');
|
|
|
|
|
|
|
|
- $rows = db('工单_基本资料')->alias('g')
|
|
|
|
|
- ->field('rtrim(g.Gd_cpmc) as Gd_cpmc, c.Gy0_yjno, c.Gy0_gxh, rtrim(c.Gy0_gxmc) as Gy0_gxmc')
|
|
|
|
|
- ->where(['g.Gd_gdbh'=>$gdbh])
|
|
|
|
|
|
|
+ $rows = db()->table('工单_印件资料')->alias('g')
|
|
|
|
|
+ ->field('rtrim(g.yj_yjmc) as Gd_cpmc, g.yj_Yjno as Gy0_yjno, c.Gy0_gxh, rtrim(c.Gy0_gxmc) as Gy0_gxmc')
|
|
|
|
|
+ ->where(['g.Yj_Gdbh'=>$gdbh])
|
|
|
->where(['c.Gy0_gxmc'=>$gxmcs])
|
|
->where(['c.Gy0_gxmc'=>$gxmcs])
|
|
|
- ->join(['产品_印件资料'=>'j'],'g.Gd_cpdh=j.yj_yjdh and g.成品代号=j.yj_cpdh')
|
|
|
|
|
- ->join(['工单_工艺资料'=>'c'],'c.Gy0_gdbh=g.Gd_gdbh and c.Gy0_yjno=j.yj_Yjno')
|
|
|
|
|
|
|
+ ->join(['工单_工艺资料'=>'c'],'c.Gy0_gdbh=g.Yj_Gdbh and g.yj_Yjno=c.Gy0_yjno')
|
|
|
->select();
|
|
->select();
|
|
|
|
|
|
|
|
foreach ($rows as $key=>$value){
|
|
foreach ($rows as $key=>$value){
|
|
@@ -601,12 +600,11 @@ class Inspect extends Api
|
|
|
}
|
|
}
|
|
|
array_push($gxmcs,'OR');
|
|
array_push($gxmcs,'OR');
|
|
|
|
|
|
|
|
- $rows = db('工单_基本资料')->alias('g')
|
|
|
|
|
- ->field('rtrim(g.Gd_cpmc) as Gd_cpmc, c.Gy0_yjno, c.Gy0_gxh, rtrim(c.Gy0_gxmc) as Gy0_gxmc')
|
|
|
|
|
- ->where(['g.Gd_gdbh'=>$gdbh])
|
|
|
|
|
|
|
+ $rows = db()->table('工单_印件资料')->alias('g')
|
|
|
|
|
+ ->field('rtrim(g.yj_yjmc) as Gd_cpmc, g.yj_Yjno as Gy0_yjno, c.Gy0_gxh, rtrim(c.Gy0_gxmc) as Gy0_gxmc')
|
|
|
|
|
+ ->where(['g.Yj_Gdbh'=>$gdbh])
|
|
|
->where(['c.Gy0_gxmc'=>$gxmcs])
|
|
->where(['c.Gy0_gxmc'=>$gxmcs])
|
|
|
- ->join(['产品_印件资料'=>'j'],'g.Gd_cpdh=j.yj_yjdh and g.成品代号=j.yj_cpdh')
|
|
|
|
|
- ->join(['工单_工艺资料'=>'c'],'c.Gy0_gdbh=g.Gd_gdbh and c.Gy0_yjno=j.yj_Yjno')
|
|
|
|
|
|
|
+ ->join(['工单_工艺资料'=>'c'],'c.Gy0_gdbh=g.Yj_Gdbh and g.yj_Yjno=c.Gy0_yjno')
|
|
|
->select();
|
|
->select();
|
|
|
|
|
|
|
|
foreach ($rows as $key=>$value){
|
|
foreach ($rows as $key=>$value){
|