瀏覽代碼

风险作业接口修改

任敬轩 8 月之前
父節點
當前提交
79919912ab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/Camera/Http/Controllers/Api/CameraApiController.php

+ 1 - 1
Modules/Camera/Http/Controllers/Api/CameraApiController.php

@@ -2249,7 +2249,7 @@ class CameraApiController extends BaseController
                     ];
                 }else{
                     $result['other_data']['title'] = $coal_washery[$i]->title;
-                    $result['other_data']['id'] = $coal_washery[$i]->id;
+                    $result['other_data']['id'] = $coal_washery[$i]->ID;
                     $result['other_data']['gao'] = DB::connection('mysql_fwe10')->table('uf_xx_risk_assignment')->where('coal_washery_id',$coal_washery[$i]->ID)->where('risk_level',0)->whereDate('create_time', today())->count();
                     $result['other_data']['zhong'] = DB::connection('mysql_fwe10')->table('uf_xx_risk_assignment')->where('coal_washery_id',$coal_washery[$i]->ID)->where('risk_level',1)->whereDate('create_time', today())->count();
                     $result['other_data']['di'] = DB::connection('mysql_fwe10')->table('uf_xx_risk_assignment')->where('coal_washery_id',$coal_washery[$i]->ID)->where('risk_level',2)->whereDate('create_time', today())->count();