|
@@ -4687,7 +4687,6 @@ class CameraApiController extends BaseController
|
|
if (isset($work_place_list[$id])) {
|
|
if (isset($work_place_list[$id])) {
|
|
|
|
|
|
$workNumber = 0;
|
|
$workNumber = 0;
|
|
- $riskWorkNum = 0;
|
|
|
|
|
|
|
|
// 拿出当前施工地点的所有风险
|
|
// 拿出当前施工地点的所有风险
|
|
$work_place_list_arr = $work_place_list[$id];
|
|
$work_place_list_arr = $work_place_list[$id];
|
|
@@ -4715,13 +4714,40 @@ class CameraApiController extends BaseController
|
|
$preVar11 = sprintf("%+d",$workNumber - $preWorkNumber);
|
|
$preVar11 = sprintf("%+d",$workNumber - $preWorkNumber);
|
|
|
|
|
|
if ($area_id_tmp == 1055262869143609349){
|
|
if ($area_id_tmp == 1055262869143609349){
|
|
- $total3 .= ++$index_2.'.'.$value->title.'作业'.$riskWorkNum.'项('.$preVar10.'),人数:'.$workNumber."人(".$preVar11.");\n";
|
|
|
|
|
|
+ $total3 .= ++$index_2.'.'.str_replace("洗煤厂","",$value->title).'作业'.$riskWorkNum.'项('.$preVar10.'),人数:'.$workNumber."人(".$preVar11.");\n";
|
|
} else{
|
|
} else{
|
|
- $total4 .= ++$index_2.'.'.$value->title.'作业'.$riskWorkNum.'项('.$preVar10.'),人数:'.$workNumber."人(".$preVar11.");\n";
|
|
|
|
|
|
+ $total4 .= ++$index_2.'.'.str_replace("洗煤厂","",$value->title).'作业'.$riskWorkNum.'项('.$preVar10.'),人数:'.$workNumber."人(".$preVar11.");\n";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (isset($pre_work_place_list[$id])) {
|
|
|
|
+
|
|
|
|
+ // 今天的风险作业数和作业人数都为0
|
|
|
|
+ $workNumber = 0;
|
|
|
|
+ $riskWorkNum = 0;
|
|
|
|
+
|
|
|
|
+ // 拿出当前施工地点的所有风险
|
|
|
|
+ $preWorkNumber = 0;
|
|
|
|
+ $pre_work_place_list_arr = $pre_work_place_list[$id];
|
|
|
|
+ foreach ($pre_work_place_list_arr as $k => $v) {
|
|
|
|
+ $preWorkNumber += $v->work_num;
|
|
|
|
+ }
|
|
|
|
+ $preRiskWorkNum = count($pre_work_place_list_arr);
|
|
|
|
+
|
|
|
|
+ // 委外作业项差值
|
|
|
|
+ $preVar10 = sprintf("%+d",$riskWorkNum - $preRiskWorkNum);
|
|
|
|
+ // 作业人数差值
|
|
|
|
+ $preVar11 = sprintf("%+d",$workNumber - $preWorkNumber);
|
|
|
|
+
|
|
|
|
+ if ($area_id_tmp == 1055262869143609349){
|
|
|
|
+ $total3 .= ++$index_2.'.'.str_replace("洗煤厂","",$value->title).'作业'.$riskWorkNum.'项('.$preVar10.'),人数:'.$workNumber."人(".$preVar11.");\n";
|
|
|
|
+ } else{
|
|
|
|
+ $total4 .= ++$index_2.'.'.str_replace("洗煤厂","",$value->title).'作业'.$riskWorkNum.'项('.$preVar10.'),人数:'.$workNumber."人(".$preVar11.");\n";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|