|
@@ -56,8 +56,7 @@ class WorkOrder extends Api
|
|
|
}
|
|
}
|
|
|
$data['翌星工单']=$data['MN工单']=[];
|
|
$data['翌星工单']=$data['MN工单']=[];
|
|
|
foreach ($list as $key=>$value){
|
|
foreach ($list as $key=>$value){
|
|
|
-// $value['客户编号'] = rtrim($value['客户编号']);
|
|
|
|
|
- $value['客户编号'] = '1006';
|
|
|
|
|
|
|
+ $value['客户编号'] = rtrim($value['客户编号']);
|
|
|
//这条sql查出来的数据可能不对,试一下以下sql
|
|
//这条sql查出来的数据可能不对,试一下以下sql
|
|
|
$productIng = \db('工单_基本资料')->where($where)->where('Gd_cpdh|成品代号','LIKE',rtrim($value['客户编号']).'%')->where('gd_statu','2-生产中')->count();
|
|
$productIng = \db('工单_基本资料')->where($where)->where('Gd_cpdh|成品代号','LIKE',rtrim($value['客户编号']).'%')->where('gd_statu','2-生产中')->count();
|
|
|
$proGress = \db('工单_基本资料')->where($where)->where('Gd_cpdh|成品代号','LIKE',rtrim($value['客户编号']).'%')->where('gd_statu','3-计划中')->count();
|
|
$proGress = \db('工单_基本资料')->where($where)->where('Gd_cpdh|成品代号','LIKE',rtrim($value['客户编号']).'%')->where('gd_statu','3-计划中')->count();
|