|
|
|
@ -518,10 +518,10 @@ class Orders_model extends CI_Model {
|
|
|
|
|
if ($gri_query->num_rows() > 0) {
|
|
|
|
|
$this->GRI_SN = $gri_query->row()->GRI_SN;
|
|
|
|
|
$this->GRI_operator = $gri_query->row()->GRI_operator;
|
|
|
|
|
$coli_sql = "SELECT top 1 COLI_SN,cold.COLD_PlanVEI_SN,cold.COLD_SN,coli.COLI_ID,coli.COLI_Memo,
|
|
|
|
|
coli.COLI_OrderDetailText,coli.COLI_State,coli.COLI_OPI_ID,coli.COLI_Price,coli.COLI_CUrrency
|
|
|
|
|
$coli_sql = "SELECT top 1 COLI_SN,gri.GRI_SN,cold.COLD_PlanVEI_SN,cold.COLD_SN,coli.COLI_ID,coli.COLI_Memo, coli.COLI_OrderDetailText,coli.COLI_State,coli.COLI_OPI_ID,coli.COLI_Price,coli.COLI_CUrrency
|
|
|
|
|
FROM BIZ_ConfirmLineInfo coli
|
|
|
|
|
inner join BIZ_ConfirmLineDetail cold on cold.COLD_COLI_SN=COLI_SN
|
|
|
|
|
LEFT JOIN GRoupInfo gri ON coli.COLI_GRI_SN=gri.GRI_SN
|
|
|
|
|
where COLI_GRI_SN=" . $this->GRI_SN;
|
|
|
|
|
$coli_query = $this->HT->query($coli_sql);
|
|
|
|
|
if ($coli_query->num_rows() > 0) {
|
|
|
|
@ -533,6 +533,19 @@ class Orders_model extends CI_Model {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 获取海纳团的发团人 */
|
|
|
|
|
public function get_gri_opi_id($code)
|
|
|
|
|
{
|
|
|
|
|
$gri_sql = "SELECT top 1 GRI_SN,GRI_OPI_ID,isnull(GRI_operator,0) GRI_operator,GRI_No,GRI_Name
|
|
|
|
|
from GRoupInfo
|
|
|
|
|
where GRI_Name like '%$code%' ";
|
|
|
|
|
$gri_query = $this->HT->query($gri_sql);
|
|
|
|
|
if ($gri_query->num_rows() > 0) {
|
|
|
|
|
return $gri_query->row()->GRI_operator;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* 获取地接社接受计划的人员信息
|
|
|
|
|
* @param $vendorID 地接社ID
|
|
|
|
@ -1304,7 +1317,7 @@ class Orders_model extends CI_Model {
|
|
|
|
|
return $ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function get_operator($OPI_SN)
|
|
|
|
|
function get_operator($OPI_SN=0)
|
|
|
|
|
{
|
|
|
|
|
$operator_sql = "SELECT opi.OPI_SN,opi.OPI_Name,opi.OPI_FirstName,OPI_MoveTelephone,OPI_Email,opi2.OPI2_Name
|
|
|
|
|
from OperatorInfo opi
|
|
|
|
|