ShuanghongS 7 mesiacov pred
rodič
commit
b7f3683587
1 zmenil súbory, kde vykonal 8 pridanie a 5 odobranie
  1. 8 5
      service/tools.class.php

+ 8 - 5
service/tools.class.php

@@ -1375,9 +1375,9 @@ class tools {
                         else ''
                     end as ctnr_desc,
 
-                    ccc.order_from,ccc.h_bol,ccc.transport_mode
+                    ccc.order_from,ccc.h_bol,ccc.transport_mode,ccc.m_bol
                 from public.kln_notifiation_info ni
-                        left join LATERAL (select oo.h_bol,oo.transport_mode,oo.order_from 
+                        left join LATERAL (select oo.h_bol,oo.transport_mode,oo.order_from,oo.m_bol 
                             from public.kln_ocean oo 
                             where oo.serial_no = ni.serial_no limit 1) ccc on true
                 where lower(ni.user_login) in ('".strtolower(_getLoginName())."','all_user')
@@ -1454,7 +1454,7 @@ class tools {
                     "isRead"=>!empty($mInfo["is_send_message"]) ? true : false,
                     "title"=>"Milestone Update",
                     "mode"=>$mInfo["transport_mode"] == 'sea' ? "Ocean Freight": "Air Freight",
-                    "no"=>$mInfo["h_bol"],
+                    "no"=>!empty($mInfo["h_bol"]) ? $mInfo["h_bol"] : $mInfo["m_bol"],
                     "tag"=>$mInfo["milestone_description"],
                     "location"=>$mInfo["milestone_locations"],
                     "timezone"=>$mInfo["milestone_timezone"],
@@ -1467,6 +1467,7 @@ class tools {
                     "id"=>$mInfo["id"],
                     "insert_date_format"=>'',
                     "rules_type"=>$mInfo["notifiation_type"],
+                    "is_display_hbol"=>!empty($mInfo["h_bol"]),
                     "info"=>new stdClass());
 
             if ($mInfo["frequency_type"] == "Daily"){
@@ -1599,7 +1600,7 @@ class tools {
                     "isRead"=>!empty($mInfo["is_send_message"]) ? true : false,
                     "title"=>$title,
                     "mode"=>$mInfo["transport_mode"] == 'sea' ? "Ocean Freight": "Air Freight",
-                    "no"=>$mInfo["h_bol"],
+                    "no"=>!empty($mInfo["h_bol"]) ? $mInfo["h_bol"] : $mInfo["m_bol"],
                     "tag"=>$mInfo["delay_name"],
                     "location"=>$outsideLocation,
                     "timezone"=>$mInfo["delay_timezone"],
@@ -1612,6 +1613,7 @@ class tools {
                     "id"=>$mInfo["id"],
                     "insert_date_format"=>'',
                     "rules_type"=>$mInfo["notifiation_type"],
+                    "is_display_hbol"=>!empty($mInfo["h_bol"]),
                     "info"=>array("route"=>$route,
                         "leg"=>$leg,
                         "etdOrdeparturNum"=>0,
@@ -1667,7 +1669,7 @@ class tools {
                     "isRead"=>!empty($mInfo["is_send_message"]) ? true : false,
                     "title"=>$title,
                     "mode"=>$mInfo["transport_mode"] == 'sea' ? "Ocean Freight": "Air Freight",
-                    "no"=>$mInfo["h_bol"],
+                    "no"=>!empty($mInfo["h_bol"]) ? $mInfo["h_bol"] : $mInfo["m_bol"],
                     "tag"=>$mInfo["date_change_name"],
                     "location"=>"",
                     "timezone"=>$mInfo["date_change_timezone"],
@@ -1680,6 +1682,7 @@ class tools {
                     "id"=>$mInfo["id"],
                     "insert_date_format"=>'',
                     "rules_type"=>$mInfo["notifiation_type"],
+                    "is_display_hbol"=>!empty($mInfo["h_bol"]),
                     "info"=>array("route"=>$route,
                         "leg"=>$leg,
                         "etdOrdeparturNum"=>0,