地接计划:客人信息只留一个人的电话;增加性别补充在其他信息中

hotfix/远程访问多媒体中心
lyt 6 years ago
parent 638946cb85
commit 3072931a46

@ -220,11 +220,14 @@ class Tulanduo
}
$from_country = ""; // 客源地
if ($guestlist===null) {
// 商务订单的客人列表
$g_cold_str = array_map(function ($ele){return $ele->GRD_COLD_SN;}, $vo['details']);
$guestlist = $this->ci->BIZ_order->get_guestlist(implode(',',$g_cold_str));
$from_country = current(array_filter(array_map(function ($ele){return $ele->Country;},$guestlist)));
// 联系人
$biz_contact = $this->ci->BIZ_order->get_customer_contact(implode(',',$g_cold_str));
$guestlist[0]->phone = $biz_contact->phone;
if (strval($from_country)==='') {
$biz_contact = $this->ci->BIZ_order->get_customer_contact(implode(',',$g_cold_str));
$from_country = $biz_contact->Country;
}
}
@ -239,6 +242,9 @@ class Tulanduo
$from_country = $vg->Country;
$this_otherinfo .= $vg->Country;
}
if (strval($vg->Gender) !== '') {
$this_otherinfo .= "; " . $vg->Gender;
}
if (strval($vg->BirthDay) !== '') {
$this_otherinfo .= "; 生日:". $vg->BirthDay;
}
@ -470,6 +476,9 @@ class Tulanduo
$from_country = $vg->Country;
$this_otherinfo .= $vg->Country;
}
if (strval($vg->Gender) !== '') {
$this_otherinfo .= "; " . $vg->Gender;
}
if (strval($vg->BirthDay) !== '') {
$this_otherinfo .= "; 生日:". $vg->BirthDay;
}
@ -765,6 +774,9 @@ class Tulanduo
$from_country = $vg->Country;
$this_otherinfo .= "; " . $vg->Country;
}
if (strval($vg->Gender) !== '') {
$this_otherinfo .= "; " . $vg->Gender;
}
if (strval($vg->BirthDay) !== '') {
$this_otherinfo .= "; 生日:". $vg->BirthDay;
}

@ -397,7 +397,7 @@ return ;
isnull(GUT_FirstName,'') + ' '+isnull(GUT_LastName,'') as MemberName,
'' as BirthDay,
'' as Gender,
GUT_MoveTel as phone,
isnull(GUT_POST ,'') + ' ' + isnull(GUT_tel,'') + isnull(GUT_MoveTel,'') as phone,
(select COI2_Country from V_Country_Info
where LGC_LGC = 2
and COI_SN = GUT_NationalityID

@ -27,7 +27,7 @@ class Orders_model extends CI_Model {
where LGC_LGC = 2
and COI_SN in (select MEI_Country from MemberInfo where MEI_SN=CUL_CUI_SN)
) as Country,
MEI_Phone phone,
CASE isnull(CUL_IsLinkMan,0) WHEN 1 THEN MEI_Phone ELSE '' END AS phone,
MEI_PassportNo PassportNo,
MEI_PassportValidDate PassportValidDate
-- (select MEI_PassportNo from MemberInfo where MEI_SN=CUL_CUI_SN) PassportNo,

Loading…
Cancel
Save