|
@@ -248,7 +248,7 @@ switch ($action) {
|
|
|
// $list = common::excuteListSql("select * from public.online_order_status_date_kln_kpi('$type'::text,'$sqlWhere'::text) "
|
|
// $list = common::excuteListSql("select * from public.online_order_status_date_kln_kpi('$type'::text,'$sqlWhere'::text) "
|
|
|
// . "r (c bigint, d text)");
|
|
// . "r (c bigint, d text)");
|
|
|
$sql = "select * from public.online_order_status_date_kln_kpi('$type'::text,'$sqlWhere'::text) "
|
|
$sql = "select * from public.online_order_status_date_kln_kpi('$type'::text,'$sqlWhere'::text) "
|
|
|
- . "r (c bigint, d text)";
|
|
|
|
|
|
|
+ . "r (c bigint, d text)";
|
|
|
$list = $mapdb->GetAll($sql) or ( (!$mapdb->ErrorMsg()) or error_log(common::dbLog($mapdb, $sql), 0));
|
|
$list = $mapdb->GetAll($sql) or ( (!$mapdb->ErrorMsg()) or error_log(common::dbLog($mapdb, $sql), 0));
|
|
|
|
|
|
|
|
$key = "[";
|
|
$key = "[";
|
|
@@ -282,6 +282,11 @@ switch ($action) {
|
|
|
}
|
|
}
|
|
|
$ETDList[] = array("value" =>intval($arr['value']),"name" =>$arr['name'],"itemStyle" =>array("color" =>$color));
|
|
$ETDList[] = array("value" =>intval($arr['value']),"name" =>$arr['name'],"itemStyle" =>array("color" =>$color));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 排序依据的键数组(这里我们用一个数字数组来表示)
|
|
|
|
|
+ $order = ["≤1 Day", "1-2 Days", "3-6 Days","≥7 Days"];
|
|
|
|
|
+ $ETDList = utils::arrayOrderBykeys($order,$ETDList,"name");
|
|
|
|
|
+
|
|
|
if($type == 'atd_r4'){
|
|
if($type == 'atd_r4'){
|
|
|
$data = array("ETDList" =>$ETDList,"ETD_Radius"=>array('30%','50%'),"title1" =>"Departure","title2" =>"(ATD-ETD)","download_name" => "KPI Departure");
|
|
$data = array("ETDList" =>$ETDList,"ETD_Radius"=>array('30%','50%'),"title1" =>"Departure","title2" =>"(ATD-ETD)","download_name" => "KPI Departure");
|
|
|
}
|
|
}
|
|
@@ -335,7 +340,7 @@ switch ($action) {
|
|
|
$key_arr[] = $arr['month_group'];
|
|
$key_arr[] = $arr['month_group'];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- $ContainerCounSeries[$container_type] = array("data"=>$data,"total"=>$total,"max"=>$max);
|
|
|
|
|
|
|
+ $ContainerCounSeries[$_container_type] = array("data"=>$data,"total"=>$total,"max"=>$max);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//处理返回时数据格式
|
|
//处理返回时数据格式
|