Ver código fonte

风险作业接口修改

任敬轩 8 meses atrás
pai
commit
79919912ab

+ 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();