修复获取的客人信息:邮箱为空

feature/pay
lyt 6 years ago
parent 67c7ca982b
commit 959c3bf25f

@ -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

Loading…
Cancel
Save