ShuanghongS 3 viikkoa sitten
vanhempi
commit
3f35a4048e
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      service/destination_delivery.class.php

+ 2 - 2
service/destination_delivery.class.php

@@ -917,7 +917,7 @@ class destination_delivery {
                     common::echo_json_encode(200,$data); 
                     exit();
                 }
-                
+
                 $saveData = $saveDataArr['result'];
                 foreach($saveData as $sData){
                     $serial_no = common::uuid();
@@ -1723,7 +1723,7 @@ class destination_delivery {
 
         //检查是否选中所有的BCN
         foreach($groupedByMbol as $mkey => $mval){
-            $mcount = common::excuteObjectSql("select count(*) from kln_ocean where m_bol = '".common::check_input($mkey)."'");
+            $mcount = common::excuteOneSql("select count(*) from kln_ocean where m_bol = '".common::check_input($mkey)."'");
             $hcount = count($mval['h_serial_no']);
             if($mcount <> $hcount){
                 return array("msg"=>"MBL No.: ".$mkey.",The shipment of BCN has not been fully selected");