|
|
@@ -398,13 +398,14 @@ class destination_delivery {
|
|
|
$returnData["KLNPLCvalue"] = empty($data['kln_pic']) ? array() : explode(";", $data['kln_pic']);
|
|
|
|
|
|
$CountryCheckedList = array();
|
|
|
- $sql = "select crm.overeas from public.contract_region_mapping crm
|
|
|
- left join ocean.contacts c on c.contact_id = crm.overeas and crm.ksmart_station_new ilike 'ksmart%'
|
|
|
- where SUBSTRING(c.country FROM 1 FOR 2) = '".$data['country']."'";
|
|
|
+ $sql = "select code from public.kerry_system_code
|
|
|
+ where description='COUNTRY-STATION'
|
|
|
+ and category = '".$data['country']."'
|
|
|
+ and code NOT LIKE 'Online_%'";
|
|
|
$rs = common::excuteListSql($sql);
|
|
|
foreach($rs as $key => $val){
|
|
|
- if(!empty($val['overeas'])){
|
|
|
- $CountryCheckedList[] = array("value" =>$val['overeas'] ,"label"=>$val['overeas']);
|
|
|
+ if(!empty($val['code'])){
|
|
|
+ $CountryCheckedList[] = array("value" =>$val['code'] ,"label"=>$val['code']);
|
|
|
}
|
|
|
}
|
|
|
$returnData["CountryCheckedList"] = $CountryCheckedList;
|