ShuanghongS 1 年之前
父节点
当前提交
ebf47b69d6
共有 3 个文件被更改,包括 13 次插入1 次删除
  1. 2 1
      .gitignore
  2. 6 0
      service/ocean_booking.class.php
  3. 5 0
      service/ocean_order.class.php

+ 2 - 1
.gitignore

@@ -6,4 +6,5 @@ nbproject/
 cache/
 .vscode/
 .svn/
-demo.txt
+demo.txt
+map_config.ini.php

+ 6 - 0
service/ocean_booking.class.php

@@ -324,6 +324,7 @@ class ocean_booking {
         from ocean o
             LEFT JOIN LATERAL ( SELECT shippr_uncode,shipper_city,
                 consignee_uncode,consignee_city,
+                place_of_receipt_un,place_of_delivery_un,
                 fport_of_loading_uncode,mport_of_discharge_uncode,po_no as _po_no
             FROM public.online_booking ob WHERE o.serial_no::text = ob.serial_no::text) ob ON true
             LEFT JOIN LATERAL ( SELECT company as cn_company,
@@ -547,6 +548,11 @@ class ocean_booking {
 
     private function returnBookingDetailData($ocean,$status){
         $data = array();
+        //由于这些基础数据还待完善,而且现在提单样式改版也没有显示客户自身的地址数据,所以我们这边的这个取值也要麻烦调整一下:
+        //1.Shipment detail顶部的Origin和Destination的取值换成Place of Receipt、Place of Delivery的UNCODE
+        //2.Tracking列表页里面字段Origin和Destination先隐藏(客户地址),不做展示
+        $ocean['shippr_uncode'] = $ocean['place_of_receipt_un'];
+        $ocean['consignee_uncode'] = $ocean['place_of_delivery_un'];
 
         //获取对应uncode 对应的时间
         $uncodes = $ocean['fport_of_loading_uncode'].";".$ocean['mport_of_discharge_uncode'];

+ 5 - 0
service/ocean_order.class.php

@@ -1202,6 +1202,11 @@ class ocean_order {
 
     private function returnOceanDetailData($ocean,$state){
         $data = array();
+        //由于这些基础数据还待完善,而且现在提单样式改版也没有显示客户自身的地址数据,所以我们这边的这个取值也要麻烦调整一下:
+        //1.Shipment detail顶部的Origin和Destination的取值换成Place of Receipt、Place of Delivery的UNCODE
+        //2.Tracking列表页里面字段Origin和Destination先隐藏(客户地址),不做展示
+        $ocean['shippr_uncode'] = $ocean['place_of_receipt_un'];
+        $ocean['consignee_uncode'] = $ocean['place_of_delivery_un'];
 
         /* Container Status */
         //Container_Status 新版只显示几个状态, CTNR# EE I AE VD VA