|
@@ -40,9 +40,9 @@ class SampleBus
|
|
|
|
|
|
$where=[
|
|
$where=[
|
|
['cyd.task_id', '=', $data['task_id']],//这里绑定成cyd.task_id进行查询
|
|
['cyd.task_id', '=', $data['task_id']],//这里绑定成cyd.task_id进行查询
|
|
- ['uid', '=', $uid]
|
|
|
|
|
|
+ ['undertake_id','=',$data['undertake_id']],
|
|
|
|
+ //['uid', '=', $uid]
|
|
];
|
|
];
|
|
-
|
|
|
|
//注释掉的是搜索功能
|
|
//注释掉的是搜索功能
|
|
// if ($data['sample_name']!='') $where[]=['sample_name', 'LIKE', '%'.$data['sample_name'].'%'];//样品名称
|
|
// if ($data['sample_name']!='') $where[]=['sample_name', 'LIKE', '%'.$data['sample_name'].'%'];//样品名称
|
|
// if ($data['sample_id']!='') $where[]=['sample_id', 'LIKE', '%'.$data['sample_id'].'%'];//样品编码
|
|
// if ($data['sample_id']!='') $where[]=['sample_id', 'LIKE', '%'.$data['sample_id'].'%'];//样品编码
|
|
@@ -57,7 +57,6 @@ class SampleBus
|
|
//
|
|
//
|
|
// if($data['sample_data']!='') $where[]=['sample_date','=',$data['sample_data']];//抽样日期
|
|
// if($data['sample_data']!='') $where[]=['sample_date','=',$data['sample_data']];//抽样日期
|
|
|
|
|
|
-
|
|
|
|
$result = (new Cyd())->selectSampleListByTaskIdAndUid($where, $data['pageNum'], $data['pageSize']);
|
|
$result = (new Cyd())->selectSampleListByTaskIdAndUid($where, $data['pageNum'], $data['pageSize']);
|
|
$count = (new Cyd())->countSampleListByTaskIdAndUid($where);
|
|
$count = (new Cyd())->countSampleListByTaskIdAndUid($where);
|
|
return ['rows'=>$result,'total'=>$count];
|
|
return ['rows'=>$result,'total'=>$count];
|
|
@@ -68,7 +67,7 @@ class SampleBus
|
|
$model_id = (new Ccjc())->getTaskInfoByTaskID($task_id)['test_model_id'];
|
|
$model_id = (new Ccjc())->getTaskInfoByTaskID($task_id)['test_model_id'];
|
|
$data = (new TestModel())->getProductInfo($model_id);
|
|
$data = (new TestModel())->getProductInfo($model_id);
|
|
$result=(new Arr())->Arr_columns($data, 'product_name,product_id');
|
|
$result=(new Arr())->Arr_columns($data, 'product_name,product_id');
|
|
- return [$result];
|
|
|
|
|
|
+ return $result;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|