diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index 90ce19ad..11285278 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -172,6 +172,18 @@ class Api_model extends CI_Model { WHERE (p2.PAG2_LGC = 104) AND (p1.pag_dei_sn = 17) AND (p2.PAG2_Check = 2) + AND (PAG_Code not in( + SELECT convert(varchar(100),( + SELECT TOP 1 im_value + FROM infoMetas + WHERE im_key = 'meta_product_code' + AND im_ic_id = ic_id + )) AS code + FROM dbo.infoContents + INNER JOIN infoStructures ON ic_id = is_ic_id + WHERE is_sitecode = 'chinatravel'".$whereInfo." + AND ic_status = 1 + )) AND (isnull(P1.DeleteFlag,0) <>1) ".$whereHT." ) Tmp @@ -186,13 +198,13 @@ class Api_model extends CI_Model { FROM dbo.infoContents inner join infoStructures on ic_id=is_ic_id WHERE is_sitecode='chinatravel' ".$whereInfo." - --and ic_status=1 + and ic_status=1 ) as t ) tball where 1=1 ORDER BY tball.sortBy ASC "; - + $query = $this->HT->query($sql); return $query->result(); } diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index 9744b709..e47b8fdb 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -152,7 +152,7 @@ - +
diff --git a/application/views/mobile_first/ch.php b/application/views/mobile_first/ch.php index 255b8c62..96293498 100644 --- a/application/views/mobile_first/ch.php +++ b/application/views/mobile_first/ch.php @@ -49,8 +49,7 @@ - +