update feedback

master
eddie 1 year ago
parent b7898a6780
commit dd156581b3

@ -96,29 +96,15 @@ 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 = ? and tai_url not LIKE '%trustpilot.com%'
order by tai_getdate desc",
array($city_name_list[0]));
$feedback_query_include_product =
$this->HT->query("
select top 1
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 = ? and tai_url LIKE '%productreview.com%'
where TAD_Content is not null and vci.cii2_name = ? 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_result_product_review = $feedback_query_include_product->result();
$feedback_list = [];
$customer_id_list = [];
$feedbackResult = array_merge($feedback_result_product_review,$feedback_result);
foreach ($feedbackResult as $feedback_row) {
$createdOn = new DateTime($feedback_row->tai_getdate);
$createdOnString = $createdOn->format('M Y');

Loading…
Cancel
Save