From 1fce62f3be0b37c654c5793450aad9b910ee365c Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Mon, 11 Dec 2023 10:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E5=A4=96=E5=A5=BD=E8=AF=84=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AE=A1=E6=A0=B8=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/feedback_model.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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