@@ -65,11 +65,11 @@ class InjectAction extends CommonAction{
if($userInfo['sp_ids']&&$userInfo['grade']>=3){
$sp_lists=$spModel->field("id,`name`")->where("`status`=0 and id in(".$userInfo['sp_ids'].")")->select();
$hotel_lists=$hotelModel->field("id,`name`,sp_id")->where("`status`=0 and sp_id in(".$userInfo['sp_ids'].")")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->where("A.sp_id in(".$userInfo['sp_ids'].")")->group("A.id")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->where("A.sp_id in(".$userInfo['sp_ids'].") and A.`status` = 0")->group("A.id")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->group("A.id")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->where("A.`status` = 0")->group("A.id")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->group("A.id")->select();
@@ -25,7 +25,7 @@ class RegionModel extends RelationModel{
//返回列表(limit分页)
if($queryType=="list"){
$where.=$sort." ".$limit;
$fields=" id,`name` title,`code`,`level`,`status`,postcode,updatetime,if(`level`>1 and `level`<4,'closed','open') as `state`,case pid when 1 then 0 else pid end as `pid` ";
$fields=" id,`name` title,remark,`code`,`level`,`status`,postcode,updatetime,if(`level`>1 and `level`<4,'closed','open') as `state`,case pid when 1 then 0 else pid end as `pid` ";
}
$sql="select ".$fields." from sh_region where 1=1 and pid < 999999 and pid = $searchPid ".$where.";";