|
|
@@ -1281,7 +1281,7 @@ class common {
|
|
|
// where 1=1 and COALESCE(shippr_uncode)<>'' $sqlWhere group by shippr_uncode order by num desc limit 10";
|
|
|
$shippr_uncode_10_sql ="with aa as (select count(shippr_uncode) as num,shippr_uncode,
|
|
|
(array_agg(shipper_city))[1] AS shipper_city from online_ocean
|
|
|
- where 1=1 and COALESCE(shippr_uncode)<>'' and $sqlWhere group by shippr_uncode order by num desc limit 10)
|
|
|
+ where 1=1 and COALESCE(shippr_uncode)<>'' $sqlWhere group by shippr_uncode order by num desc limit 10)
|
|
|
select aa.*,dd.* from aa
|
|
|
left join LATERAL ( select lon as lng, lat as lat,
|
|
|
'' as label, '' as infor, 3 as sort,
|
|
|
@@ -1297,7 +1297,7 @@ class common {
|
|
|
left join LATERAL ( select lon as lng, lat as lat,
|
|
|
'' as label, '' as infor, 3 as sort,
|
|
|
null::timestamp without time zone as stime,''::text as ptype
|
|
|
- from vessel.vt_unlocode where lon<>0 and lat<>0 and lon is not null and lat is not null and uncode=aa.shippr_uncode ) dd on true";
|
|
|
+ from vessel.vt_unlocode where lon<>0 and lat<>0 and lon is not null and lat is not null and uncode=aa.fport_of_loading_un ) dd on true";
|
|
|
$shippr_uncode_10 = common::excuteListSql($shippr_uncode_10_sql);
|
|
|
}
|
|
|
//$toporiginType = "fport_of_loading_un";
|
|
|
@@ -1324,7 +1324,7 @@ class common {
|
|
|
left join LATERAL ( select lon as lng, lat as lat,
|
|
|
'' as label, '' as infor, 3 as sort,
|
|
|
null::timestamp without time zone as stime,''::text as ptype
|
|
|
- from vessel.vt_unlocode where lon<>0 and lat<>0 and lon is not null and lat is not null and uncode=aa.consignee_uncode ) dd on true";
|
|
|
+ from vessel.vt_unlocode where lon<>0 and lat<>0 and lon is not null and lat is not null and uncode=aa.mport_of_discharge_un ) dd on true";
|
|
|
$consignee_uncode_10 = common::excuteListSql($consignee_uncode_10_sql);
|
|
|
}
|
|
|
|