|
|
|
|
@ -87,18 +87,7 @@ 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]));
|
|
|
|
|
function get_feedback_by_city_list($city_name_list, $all=TRUE) {
|
|
|
|
|
|
|
|
|
|
$feedback_query =
|
|
|
|
|
$this->HT->query("
|
|
|
|
|
@ -106,10 +95,23 @@ 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 tai_url not LIKE '%trustpilot.com%'
|
|
|
|
|
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]));
|
|
|
|
|
|
|
|
|
|
if ($all) {
|
|
|
|
|
$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]));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$first_city_num = $feedback_query->num_rows();
|
|
|
|
|
$feedback_result = $feedback_query->result();
|
|
|
|
|
$feedback_list = [];
|
|
|
|
|
@ -147,16 +149,19 @@ class Feedback_model extends CI_Model {
|
|
|
|
|
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]));
|
|
|
|
|
|
|
|
|
|
if ($all) {
|
|
|
|
|
$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) {
|
|
|
|
|
|