|
|
|
|
@ -91,12 +91,15 @@ class Feedback_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
$feedback_query =
|
|
|
|
|
$this->HT->query("
|
|
|
|
|
select top 40 tai_url,tad_content, tai_customerid, tai_title, tai_getdate, vci.cii2_name, g.GRI_EntranceDate, country.COI2_Country
|
|
|
|
|
select top 40 tai_url,tad_content, tai_customerid, tai_title, tai_getdate, vci.cii2_name, g.GRI_EntranceDate, coi2.COI2_Country
|
|
|
|
|
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
|
|
|
|
|
left join GRoupInfo g on g.GRI_SN = TAI_GRI_SN
|
|
|
|
|
left JOIN V_Country_Info country on country.COI_SN = g.GRI_Country and country.LGC_LGC = 1
|
|
|
|
|
left JOIN ConfirmLineInfo cli on cli.COLI_GRI_SN = g.GRI_SN
|
|
|
|
|
left join CUstomerList cul on cul.CUL_COLI_SN = cli.COLI_SN and CUL_IsLinkMan = 1
|
|
|
|
|
left join MEmberInfo mei on mei.MEI_SN = cul.CUL_CUI_SN
|
|
|
|
|
left join COuntryInfo2 coi2 on coi2.COI2_COI_SN = mei.MEI_Country and COI2_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]));
|
|
|
|
|
@ -105,12 +108,15 @@ class Feedback_model extends CI_Model {
|
|
|
|
|
$feedback_query =
|
|
|
|
|
$this->HT->query("
|
|
|
|
|
select top 40
|
|
|
|
|
tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name, g.GRI_EntranceDate, country.COI2_Country
|
|
|
|
|
tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name, g.GRI_EntranceDate, coi2.COI2_Country
|
|
|
|
|
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
|
|
|
|
|
left join GRoupInfo g on g.GRI_SN = TAI_GRI_SN
|
|
|
|
|
left JOIN V_Country_Info country on country.COI_SN = g.GRI_Country and country.LGC_LGC = 1
|
|
|
|
|
left JOIN ConfirmLineInfo cli on cli.COLI_GRI_SN = g.GRI_SN
|
|
|
|
|
left join CUstomerList cul on cul.CUL_COLI_SN = cli.COLI_SN and CUL_IsLinkMan = 1
|
|
|
|
|
left join MEmberInfo mei on mei.MEI_SN = cul.CUL_CUI_SN
|
|
|
|
|
left join COuntryInfo2 coi2 on coi2.COI2_COI_SN = mei.MEI_Country and COI2_LGC = 1
|
|
|
|
|
where TAD_Content is not null and vci.cii2_name = ?
|
|
|
|
|
order by tai_getdate desc",
|
|
|
|
|
array($city_name_list[0]));
|
|
|
|
|
@ -152,12 +158,15 @@ class Feedback_model extends CI_Model {
|
|
|
|
|
$feedback_query =
|
|
|
|
|
$this->HT->query("
|
|
|
|
|
select top ?
|
|
|
|
|
tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name, g.GRI_EntranceDate, country.COI2_Country
|
|
|
|
|
tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name, g.GRI_EntranceDate, coi2.COI2_Country
|
|
|
|
|
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
|
|
|
|
|
left join GRoupInfo g on g.GRI_SN = TAI_GRI_SN
|
|
|
|
|
left JOIN V_Country_Info country on country.COI_SN = g.GRI_Country and country.LGC_LGC = 1
|
|
|
|
|
left JOIN ConfirmLineInfo cli on cli.COLI_GRI_SN = g.GRI_SN
|
|
|
|
|
left join CUstomerList cul on cul.CUL_COLI_SN = cli.COLI_SN and CUL_IsLinkMan = 1
|
|
|
|
|
left join MEmberInfo mei on mei.MEI_SN = cul.CUL_CUI_SN
|
|
|
|
|
left join COuntryInfo2 coi2 on coi2.COI2_COI_SN = mei.MEI_Country and COI2_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($enough_count, $city_name_list[1]));
|
|
|
|
|
@ -166,12 +175,15 @@ class Feedback_model extends CI_Model {
|
|
|
|
|
$feedback_query =
|
|
|
|
|
$this->HT->query("
|
|
|
|
|
select top ?
|
|
|
|
|
tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name, g.GRI_EntranceDate, country.COI2_Country
|
|
|
|
|
tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name, g.GRI_EntranceDate, coi2.COI2_Country
|
|
|
|
|
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
|
|
|
|
|
left join GRoupInfo g on g.GRI_SN = TAI_GRI_SN
|
|
|
|
|
left JOIN V_Country_Info country on country.COI_SN = g.GRI_Country and country.LGC_LGC = 1
|
|
|
|
|
left JOIN ConfirmLineInfo cli on cli.COLI_GRI_SN = g.GRI_SN
|
|
|
|
|
left join CUstomerList cul on cul.CUL_COLI_SN = cli.COLI_SN and CUL_IsLinkMan = 1
|
|
|
|
|
left join MEmberInfo mei on mei.MEI_SN = cul.CUL_CUI_SN
|
|
|
|
|
left join COuntryInfo2 coi2 on coi2.COI2_COI_SN = mei.MEI_Country and COI2_LGC = 1
|
|
|
|
|
where TAD_Content is not null and vci.cii2_name = ?
|
|
|
|
|
order by tai_getdate desc",
|
|
|
|
|
array($enough_count, $city_name_list[1]));
|
|
|
|
|
|