update feedback

master
eddie 1 year ago
parent bb634bdd1c
commit 202816e38c

@ -89,33 +89,33 @@ class Feedback_model extends CI_Model {
*/
function get_feedback_by_city_list($city_name_list) {
$feedback_query =
$this->HT->query("
select top 40
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($city_name_list[0]));
// $feedback_query =
// $this->HT->query("
// select top 40 tai_url,tad_content, tai_customerid, tai_title, tai_getdate, vci.cii2_name
// select top 40
// 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 tai_url not LIKE '%trustpilot.com%' or tai_url LIKE '%productreview.com%'
// where TAD_Content is not null and vci.cii2_name = ?
// order by tai_getdate desc",
// array($city_name_list[0]));
$feedback_query =
$this->HT->query("
select top 40 tai_url,tad_content, tai_customerid, tai_title, tai_getdate, 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 tai_url not LIKE '%trustpilot.com%' or tai_url LIKE '%productreview.com%'
order by tai_getdate desc",
array($city_name_list[0]));
$first_city_num = $feedback_query->num_rows();
$feedback_result = $feedback_query->result();
$feedback_list = [];
$customer_id_list = [];
foreach ($feedbackResult as $feedback_row) {
foreach ($feedback_result as $feedback_row) {
$createdOn = new DateTime($feedback_row->tai_getdate);
$createdOnString = $createdOn->format('M Y');
$feedback_count = COUNT($feedback_list);

Loading…
Cancel
Save