|
@@ -3966,10 +3966,10 @@ class CameraApiController extends BaseController
|
|
|
->select('t.xm')
|
|
|
->where('t.is_delete',0)
|
|
|
->where('t.delete_type',0)
|
|
|
- ->where('coal_washery_id',$coal_list[$i]->ID)
|
|
|
+ ->where('coal_washery_id',$coal_list_id)
|
|
|
->get();
|
|
|
$var2 = count($var_1);
|
|
|
- if(count($risk_list) > 0){
|
|
|
+ if($risk_list && count($risk_list) > 0){
|
|
|
$control_num = 0;
|
|
|
for ($j=0;$j<count($risk_list);$j++){
|
|
|
$people = explode('、',$risk_list[$j]->work_people);
|