update all feedback

master
eddie 1 year ago
parent 8d5d382585
commit 701e1f305b

@ -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)){

Loading…
Cancel
Save