diff --git a/application/models/feedback_model.php b/application/models/feedback_model.php index 2ee2df9d..c0c37432 100644 --- a/application/models/feedback_model.php +++ b/application/models/feedback_model.php @@ -16,9 +16,11 @@ class Feedback_model extends CI_Model { $this->HT->query(" select top 40 tad_content, tai_customerid, tai_title, tai_getdate, tai_url - from Eva_TAInfo - left join Eva_TADetail on TAD_TAI_SN=TAI_SN + from Eva_TAInfo tai + left join Eva_TADetail on TAD_TAI_SN=TAI_SN + left join Eva_TAGuidePrize tgp on tgp.TGP_TAI_SN = tai.TAI_SN where TAD_Content is not null + and isnull(TAI_DeleteFlag,0) = 0 and isnull(tgp.TGP_CheckState, 0) = 136002 order by tai_getdate desc"); $feedback_result = $feedback_query->result(); @@ -51,7 +53,7 @@ class Feedback_model extends CI_Model { $this->HT->query(" select top 40 tad_content, tai_customerid, tai_title, tai_getdate, tai_url - from Eva_TAInfo + from Eva_TAInfo tai left join Eva_TADetail on TAD_TAI_SN=TAI_SN left join Eva_TAGuidePrize tgp on tgp.TGP_TAI_SN = tai.TAI_SN where TAD_Content is not null