diff --git a/application/models/feedback_model.php b/application/models/feedback_model.php index e861a496..2ee2df9d 100644 --- a/application/models/feedback_model.php +++ b/application/models/feedback_model.php @@ -52,8 +52,10 @@ class Feedback_model extends CI_Model { 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 + 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();