|
|
|
|
@ -100,12 +100,26 @@ class Feedback_model extends CI_Model {
|
|
|
|
|
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%'
|
|
|
|
|
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 = [];
|
|
|
|
|
|
|
|
|
|
foreach ($feedback_result as $feedback_row) {
|
|
|
|
|
$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');
|
|
|
|
|
$feedback_count = COUNT($feedback_list);
|
|
|
|
|
|