ShuanghongS 3 kuukautta sitten
vanhempi
commit
448877e1e4
1 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 6 5
      service/destination_delivery.class.php

+ 6 - 5
service/destination_delivery.class.php

@@ -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;