From 959c3bf25f948b202c939df61443ef33badd015f Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 14 Jun 2019 10:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E7=9A=84?= =?UTF-8?q?=E5=AE=A2=E4=BA=BA=E4=BF=A1=E6=81=AF:=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/models/paypal_model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webht/third_party/paypal/models/paypal_model.php b/webht/third_party/paypal/models/paypal_model.php index ff8e6de2..50625797 100644 --- a/webht/third_party/paypal/models/paypal_model.php +++ b/webht/third_party/paypal/models/paypal_model.php @@ -647,8 +647,10 @@ class Paypal_model extends CI_Model { $sql = "SELECT mei.MEI_FirstName+' '+isnull(mei.MEI_MiddleName,'')+' '+isnull(mei.MEI_LastName,'') fullname, mei.MEI_MailList email FROM MEmberInfo mei - INNER JOIN CUstomerList cul on mei.MEI_SN=cul.CUL_CUI_SN and cul.CUL_IsLinkMan=1 - WHERE CUL_COLI_SN=? "; + INNER JOIN CUstomerList cul on mei.MEI_SN=cul.CUL_CUI_SN -- and cul.CUL_IsLinkMan=1 + WHERE CUL_COLI_SN=? + and isnull(mei.MEI_MailList,'')<>'' + order by cul.CUL_IsLinkMan desc"; return $this->HT->query($sql, $COLI_SN)->row(); } else { $sql = "SELECT GUT_FirstName+' '+GUT_LastName fullname,GUT_Email email from BIZ_GUEST g