|
|
@ -294,7 +294,7 @@ class Api_model extends CI_Model {
|
|
|
|
select * from (
|
|
|
|
select * from (
|
|
|
|
SELECT ic_url,ic_url_title,ic_photo
|
|
|
|
SELECT ic_url,ic_url_title,ic_photo
|
|
|
|
,(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
|
|
|
|
,'2' as sortby
|
|
|
|
,'2' as sortby , is_sort
|
|
|
|
FROM dbo.infoContents
|
|
|
|
FROM dbo.infoContents
|
|
|
|
inner join infoStructures on ic_id=is_ic_id
|
|
|
|
inner join infoStructures on ic_id=is_ic_id
|
|
|
|
WHERE is_sitecode='chinatravel'
|
|
|
|
WHERE is_sitecode='chinatravel'
|
|
|
@ -306,14 +306,14 @@ class Api_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
|
|
SELECT ic_url,ic_url_title,ic_photo
|
|
|
|
SELECT ic_url,ic_url_title,ic_photo
|
|
|
|
,(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 ,is_sort
|
|
|
|
FROM dbo.infoContents
|
|
|
|
FROM dbo.infoContents
|
|
|
|
inner join infoStructures on ic_id=is_ic_id
|
|
|
|
inner join infoStructures on ic_id=is_ic_id
|
|
|
|
WHERE is_sitecode='chinatravel'
|
|
|
|
WHERE is_sitecode='chinatravel'
|
|
|
|
and ic_status=1
|
|
|
|
and ic_status=1
|
|
|
|
and is_parent_id = ?
|
|
|
|
and is_parent_id = ?
|
|
|
|
) allbt
|
|
|
|
) allbt
|
|
|
|
order by sortby
|
|
|
|
order by sortby ,is_sort
|
|
|
|
|
|
|
|
|
|
|
|
";
|
|
|
|
";
|
|
|
|
|
|
|
|
|
|
|
|