|
@@ -91,7 +91,7 @@ class destination_delivery {
|
|
|
and e.active = true
|
|
and e.active = true
|
|
|
".$sqlwhere."
|
|
".$sqlwhere."
|
|
|
and coalesce(e.email,'') <>''
|
|
and coalesce(e.email,'') <>''
|
|
|
- and e.email ilike '" . common::check_input($term) . "%' limit 20";
|
|
|
|
|
|
|
+ and e.email ilike '" . common::check_input($term) . "%' limit 50";
|
|
|
|
|
|
|
|
$rs = common::excuteListSql($sql);
|
|
$rs = common::excuteListSql($sql);
|
|
|
$retData = array();
|
|
$retData = array();
|
|
@@ -121,7 +121,7 @@ class destination_delivery {
|
|
|
where coalesce(country_abb,'')<>''
|
|
where coalesce(country_abb,'')<>''
|
|
|
and coalesce(airport.country_abb,'')||airport.airport_code ilike '" . common::check_input($term) . "%'";
|
|
and coalesce(airport.country_abb,'')||airport.airport_code ilike '" . common::check_input($term) . "%'";
|
|
|
}
|
|
}
|
|
|
- $sql .= " order by uncode limit 20";
|
|
|
|
|
|
|
+ $sql .= " order by uncode limit 50";
|
|
|
|
|
|
|
|
$rs = common::excuteListSql($sql);
|
|
$rs = common::excuteListSql($sql);
|
|
|
//前端要加上id 从1开始
|
|
//前端要加上id 从1开始
|
|
@@ -145,7 +145,7 @@ class destination_delivery {
|
|
|
|
|
|
|
|
$sql = "select DISTINCT scac from public.vessel_company
|
|
$sql = "select DISTINCT scac from public.vessel_company
|
|
|
where coalesce(scac,'')<> '' and scac ilike '" . common::check_input($term) . "%'";
|
|
where coalesce(scac,'')<> '' and scac ilike '" . common::check_input($term) . "%'";
|
|
|
- $sql .= " order by scac limit 20";
|
|
|
|
|
|
|
+ $sql .= " order by scac limit 50";
|
|
|
|
|
|
|
|
$rs = common::excuteListSql($sql);
|
|
$rs = common::excuteListSql($sql);
|
|
|
//前端要加上id 从1开始
|
|
//前端要加上id 从1开始
|
|
@@ -269,12 +269,12 @@ class destination_delivery {
|
|
|
if ($term_type == "country"){
|
|
if ($term_type == "country"){
|
|
|
$sql = "select DISTINCT country_code AS code from public.unlocode
|
|
$sql = "select DISTINCT country_code AS code from public.unlocode
|
|
|
where country_code ilike '" . common::check_input($term) . "%'".$extend_sql_where;
|
|
where country_code ilike '" . common::check_input($term) . "%'".$extend_sql_where;
|
|
|
- $sql .= " order by country_code limit 20";
|
|
|
|
|
|
|
+ $sql .= " order by country_code limit 50";
|
|
|
}
|
|
}
|
|
|
if ($term_type == "city"){
|
|
if ($term_type == "city"){
|
|
|
$sql = "select DISTINCT location_code AS code from public.unlocode
|
|
$sql = "select DISTINCT location_code AS code from public.unlocode
|
|
|
where location_code ilike '" . common::check_input($term) . "%'".$extend_sql_where;
|
|
where location_code ilike '" . common::check_input($term) . "%'".$extend_sql_where;
|
|
|
- $sql .= " order by location_code limit 20";
|
|
|
|
|
|
|
+ $sql .= " order by location_code limit 50";
|
|
|
}
|
|
}
|
|
|
$rs = common::excuteListSql($sql);
|
|
$rs = common::excuteListSql($sql);
|
|
|
//前端要加上id 从1开始
|
|
//前端要加上id 从1开始
|