|
|
|
|
@ -439,8 +439,9 @@ class IPayLinks_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
|
|
|
|
|
|