|
@@ -404,7 +404,6 @@ class ocean_order {
|
|
|
// if (!empty($_POST["_textSearch"])) {
|
|
// if (!empty($_POST["_textSearch"])) {
|
|
|
// $sqlWhere .= " and text_search @@ (str_to_tsquery('" . common::check_input($_POST["_textSearch"]) . "'))";
|
|
// $sqlWhere .= " and text_search @@ (str_to_tsquery('" . common::check_input($_POST["_textSearch"]) . "'))";
|
|
|
// }
|
|
// }
|
|
|
-
|
|
|
|
|
//处理reference类型的组合查询 Search booking No./HBL No./PO No./Carrier Booking No.
|
|
//处理reference类型的组合查询 Search booking No./HBL No./PO No./Carrier Booking No.
|
|
|
if (!empty($_POST["_textSearch"])) {
|
|
if (!empty($_POST["_textSearch"])) {
|
|
|
$textSearch_arr = $_POST['_textSearch'];
|
|
$textSearch_arr = $_POST['_textSearch'];
|
|
@@ -440,29 +439,33 @@ class ocean_order {
|
|
|
select regexp_split_to_table('Booking Confirmation,Cargo Pickup,Cargo Arrived at Origin,Departure,Arrived at Final Destination Port,Arrived at Final Destination', ','))
|
|
select regexp_split_to_table('Booking Confirmation,Cargo Pickup,Cargo Arrived at Origin,Departure,Arrived at Final Destination Port,Arrived at Final Destination', ','))
|
|
|
order by id desc limit 1) dd on true" . $sqlWhere;
|
|
order by id desc limit 1) dd on true" . $sqlWhere;
|
|
|
$rc = common::excuteOneSql($sql);
|
|
$rc = common::excuteOneSql($sql);
|
|
|
- error_log("online_ocean_count:".$sql);
|
|
|
|
|
|
|
+ error_log("online_ocean_count_ALL_SQL:".$sql);
|
|
|
|
|
|
|
|
//Booked
|
|
//Booked
|
|
|
$sql = $this->getOcanOrderSearchSql("Booked",$sqlWhere);
|
|
$sql = $this->getOcanOrderSearchSql("Booked",$sqlWhere);
|
|
|
$Booked = common::excuteOneSql($sql);
|
|
$Booked = common::excuteOneSql($sql);
|
|
|
|
|
+ error_log("online_ocean_count_Booked_SQL: ".$sql);
|
|
|
|
|
|
|
|
//Cargo Received
|
|
//Cargo Received
|
|
|
$sql = $this->getOcanOrderSearchSql("Cargo Received",$sqlWhere);
|
|
$sql = $this->getOcanOrderSearchSql("Cargo Received",$sqlWhere);
|
|
|
$Cargo_Received = common::excuteOneSql($sql);
|
|
$Cargo_Received = common::excuteOneSql($sql);
|
|
|
|
|
+ error_log("online_ocean_count_Cargo_Received_SQL: ".$sql);
|
|
|
|
|
|
|
|
//Departed
|
|
//Departed
|
|
|
$sql = $this->getOcanOrderSearchSql("Departed",$sqlWhere);
|
|
$sql = $this->getOcanOrderSearchSql("Departed",$sqlWhere);
|
|
|
$Departed = common::excuteOneSql($sql);
|
|
$Departed = common::excuteOneSql($sql);
|
|
|
|
|
+ error_log("online_ocean_count_Departed_SQL: ".$sql);
|
|
|
|
|
|
|
|
//Arrived
|
|
//Arrived
|
|
|
$sql = $this->getOcanOrderSearchSql("Arrived",$sqlWhere);
|
|
$sql = $this->getOcanOrderSearchSql("Arrived",$sqlWhere);
|
|
|
$Arrived = common::excuteOneSql($sql);
|
|
$Arrived = common::excuteOneSql($sql);
|
|
|
|
|
+ error_log("online_ocean_count_Arrived_SQL: ".$sql);
|
|
|
|
|
|
|
|
//Completed
|
|
//Completed
|
|
|
$sql = $this->getOcanOrderSearchSql("Completed",$sqlWhere);
|
|
$sql = $this->getOcanOrderSearchSql("Completed",$sqlWhere);
|
|
|
$Completed = common::excuteOneSql($sql);
|
|
$Completed = common::excuteOneSql($sql);
|
|
|
|
|
+ error_log("online_ocean_count_Completed_SQL: ".$sql);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
if (!empty($_POST["filterTag"])) {
|
|
if (!empty($_POST["filterTag"])) {
|
|
|
$tagsList = array(array("name"=>"All","number"=>$rc,"type"=>"all","checked"=>utils::in_array('All', $_POST["filterTag"])? true : false),
|
|
$tagsList = array(array("name"=>"All","number"=>$rc,"type"=>"all","checked"=>utils::in_array('All', $_POST["filterTag"])? true : false),
|
|
|
array("name"=>"Booked","number"=>$Booked,"type"=>"booked","checked"=>utils::in_array('Booked', $_POST["filterTag"])? true : false),
|
|
array("name"=>"Booked","number"=>$Booked,"type"=>"booked","checked"=>utils::in_array('Booked', $_POST["filterTag"])? true : false),
|
|
@@ -518,7 +521,7 @@ class ocean_order {
|
|
|
column::getInstance()->getSearchSqlForDisplay('Ocean_Search') . " from public.online_ocean $ocean_ref_sql $ocean_status_sql" . $sqlWhere .
|
|
column::getInstance()->getSearchSqlForDisplay('Ocean_Search') . " from public.online_ocean $ocean_ref_sql $ocean_status_sql" . $sqlWhere .
|
|
|
" order by $order_by limit " . $ps . " offset " . ($cp - 1) * $ps;
|
|
" order by $order_by limit " . $ps . " offset " . ($cp - 1) * $ps;
|
|
|
$rs = common::excuteListSql($sql);
|
|
$rs = common::excuteListSql($sql);
|
|
|
- error_log("online_ocean_search:".$sql);
|
|
|
|
|
|
|
+ error_log("online_ocean_search_SQL: ".$sql);
|
|
|
|
|
|
|
|
//对查询的结果做特殊处理,比如要拼接某个值,合并值等
|
|
//对查询的结果做特殊处理,比如要拼接某个值,合并值等
|
|
|
foreach($rs as $index => $val) {
|
|
foreach($rs as $index => $val) {
|