更新垮库查询

hotfix/paypal-note
赵鹏 4 years ago
parent 3f107f449b
commit 3fb7e990d9

@ -9,7 +9,7 @@ class Api_model extends CI_Model {
{ {
parent::__construct(); parent::__construct();
$this->HT = $this->load->database('HT', TRUE); $this->HT = $this->load->database('HT', TRUE);
$this->InfoCT = $this->load->database('INFORMATION', TRUE);
} }
var $dei_sn = 17; //组别ID var $dei_sn = 17; //组别ID
@ -195,8 +195,8 @@ class Api_model extends CI_Model {
,ic_url as url , ic_photo as pic1 ,ic_url as url , ic_photo as pic1
,(select top 1 im_value from infoMetas where im_key='meta_addon_picture_mobile' and im_ic_id=ic_id) as pic2 ,(select top 1 im_value from infoMetas where im_key='meta_addon_picture_mobile' and im_ic_id=ic_id) as pic2
,'1' as sortby ,'1' as sortby
FROM dbo.infoContents FROM information_ct.dbo.infoContents
inner join infoStructures on ic_id=is_ic_id inner join information_ct.dbo.infoStructures on ic_id=is_ic_id
WHERE is_sitecode='chinatravel' ".$whereInfo." WHERE is_sitecode='chinatravel' ".$whereInfo."
and ic_status=1 and ic_status=1
) as t ) as t
@ -314,7 +314,7 @@ class Api_model extends CI_Model {
order by sortby order by sortby
"; ";
$qurey = $this->HT->query($sql,array($url."/%",$new_pid)); $qurey = $this->InfoCT->query($sql,array($url."/%",$new_pid));
return $qurey->result(); return $qurey->result();
} }
@ -460,7 +460,7 @@ class Api_model extends CI_Model {
AND icOld.ic_url = ? AND icOld.ic_url = ?
AND icOld.ic_sitecode = 'ct'"; AND icOld.ic_sitecode = 'ct'";
return $this->HT->query($sql, array($id,$oldUrl)); return $this->InfoCT->query($sql, array($id,$oldUrl));
} }
} }

Loading…
Cancel
Save