From 701e1f305bfc2acda34adc015047057a30a13e06 Mon Sep 17 00:00:00 2001 From: eddie <1150970484@qq.com> Date: Fri, 6 Dec 2024 10:34:10 +0800 Subject: [PATCH] update all feedback --- application/models/feedback_model.php | 29 ++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/application/models/feedback_model.php b/application/models/feedback_model.php index 9e8e6ab9..026c4d48 100644 --- a/application/models/feedback_model.php +++ b/application/models/feedback_model.php @@ -144,9 +144,19 @@ class Feedback_model extends CI_Model { from Eva_TAInfo left join Eva_TADetail on TAD_TAI_SN=TAI_SN left join V_CIty_Info vci on vci.cii_sn = tai_cii_sn and vci.LGC_LGC = 1 - where TAD_Content is not null and vci.cii2_name = ? + where TAD_Content is not null and vci.cii2_name = ? and tai_url not LIKE '%trustpilot.com%' order by tai_getdate desc", array($enough_count, $city_name_list[1])); + // $feedback_query = + // $this->HT->query(" + // select top ? + // tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name + // from Eva_TAInfo + // left join Eva_TADetail on TAD_TAI_SN=TAI_SN + // left join V_CIty_Info vci on vci.cii_sn = tai_cii_sn and vci.LGC_LGC = 1 + // where TAD_Content is not null and vci.cii2_name = ? + // order by tai_getdate desc", + // array($enough_count, $city_name_list[1])); $feedback_result = $feedback_query->result(); foreach ($feedback_result as $feedback_row) { @@ -176,6 +186,16 @@ class Feedback_model extends CI_Model { */ function get_feedback_by_city_name($city_name, $top = 30) { + // $feedback_query = + // $this->HT->query(" + // select top ? + // tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name + // from Eva_TAInfo + // left join Eva_TADetail on TAD_TAI_SN=TAI_SN + // left join V_CIty_Info vci on vci.cii_sn = tai_cii_sn and vci.LGC_LGC = 1 + // where TAD_Content is not null and vci.cii2_name = ? + // order by tai_getdate desc", + // array($top, $city_name)); $feedback_query = $this->HT->query(" select top ? @@ -183,7 +203,7 @@ class Feedback_model extends CI_Model { from Eva_TAInfo left join Eva_TADetail on TAD_TAI_SN=TAI_SN left join V_CIty_Info vci on vci.cii_sn = tai_cii_sn and vci.LGC_LGC = 1 - where TAD_Content is not null and vci.cii2_name = ? + where TAD_Content is not null and vci.cii2_name = ? and tai_url not LIKE '%trustpilot.com%' order by tai_getdate desc", array($top, $city_name)); @@ -235,6 +255,7 @@ class Feedback_model extends CI_Model { and v.LGC_LGC = 1 and v.OPI2_Name = ? ) + and tai_url not LIKE '%trustpilot.com%' order by tai.tai_getdate desc; ", array($advisor_name)); @@ -276,7 +297,9 @@ class Feedback_model extends CI_Model { from Eva_TAInfo left join Eva_TADetail on TAD_TAI_SN=TAI_SN left join V_CIty_Info vci on vci.cii_sn = tai_cii_sn and vci.LGC_LGC = 1 - where TAD_Content is not null "; + where TAD_Content is not null + and tai_url not LIKE '%trustpilot.com%' + "; //根据传递的城市名称进行判断 if ($city == "All" || empty($city)){