|
|
@@ -31,11 +31,11 @@ class WorkOrder extends Api
|
|
|
$this->error('请求错误');
|
|
|
}
|
|
|
$param = $this->request->param();
|
|
|
- if (isset($param['sort'])){
|
|
|
- $where['工单分类'] = 2;
|
|
|
- }else{
|
|
|
- $where['工单分类'] = ['in',[1,3]];
|
|
|
- }
|
|
|
+// if (isset($param['sort'])){
|
|
|
+// $where['工单分类'] = 2;
|
|
|
+// }else{
|
|
|
+// $where['工单分类'] = ['in',[1,3]];
|
|
|
+// }
|
|
|
$where['行号'] = ['in',['1','10']];
|
|
|
//获取总计划中数量和总生产中数量
|
|
|
$productingAll = \db('工单_基本资料')->where($where)->where('成品代号','<>','')->where('行号','1')->where('gd_statu','2-生产中')->cache(true)->count();
|