ShuanghongS 1 년 전
부모
커밋
e3f72a5f73
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 1
      service/ocean_booking.class.php
  2. 2 4
      service/ocean_order.class.php

+ 2 - 1
service/ocean_booking.class.php

@@ -182,7 +182,7 @@ class ocean_booking {
             //查询ALL
             $sql = "SELECT count(1) from public.online_booking" . $sqlWhere;
             $rc = common::excuteOneSql($sql);
-            error_log($sql);
+            error_log("online_booking_count:".$sql);
             
             //查询Creatd
             $Creatd_sqlWhere = " and (1<>1 or (bol_type != 'BOOKING' and (booking_no is null or booking_no = '')))";
@@ -238,6 +238,7 @@ class ocean_booking {
                         column::getInstance()->getSearchSqlForDisplay('Booking_Search') . " from public.online_booking $ocean_dest_sql " . $sqlWhere . " order by $order_by limit " . $ps . " offset " . ($cp - 1) * $ps;
             }
             $rs = common::excuteListSql($sql);
+            error_log("online_booking_search:".$sql);
 
             //对查询的结果做特殊处理,比如要拼接某个值,合并值等
             foreach($rs as $index => $val) {

+ 2 - 4
service/ocean_order.class.php

@@ -440,7 +440,7 @@ class ocean_order {
 						select regexp_split_to_table('Booking Confirmation,Cargo Pickup,Cargo Arrived at Origin,Departure,Arrived at Final Destination Port,Arrived at Final Destination', ','))
 				 order by id desc limit 1) dd on true" . $sqlWhere;
             $rc = common::excuteOneSql($sql);
-            error_log("online_ocean:".$sql);
+            error_log("online_ocean_count:".$sql);
 
             //Booked
             $sql = $this->getOcanOrderSearchSql("Booked",$sqlWhere);
@@ -517,10 +517,8 @@ class ocean_order {
 		            END AS new_status, ".
                     column::getInstance()->getSearchSqlForDisplay('Ocean_Search') . " from public.online_ocean $ocean_ref_sql $ocean_status_sql" . $sqlWhere . 
                 " order by $order_by limit " . $ps . " offset " . ($cp - 1) * $ps;
-
-             $sss =  " order by $order_by limit " . $ps . " offset " . ($cp - 1) * $ps;   
-            
             $rs = common::excuteListSql($sql);
+            error_log("online_ocean_search:".$sql);
             
             //对查询的结果做特殊处理,比如要拼接某个值,合并值等
             foreach($rs as $index => $val) {