@@ -61,7 +61,7 @@ class InjectAction extends CommonAction{
$info=$model->where("id = $id")->find();
$this->info=$info;
}
$media_lists=$mediaModel->join(" A join sh_sp B on A.site_id = B.site_id ")->field("concat(A.id,'_',A.code) id,A.title,group_concat(B.id) sp_ids")->group(" A.id ")->select();
$media_lists=$mediaModel->join(" A join sh_sp B on A.site_id = B.site_id ")->field("concat(A.id,'_',A.code) id,A.title,group_concat(B.id) sp_ids,A.`type`,A.`status`,A.programType")->group(" A.id ")->select();
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();
...
...
@@ -71,7 +71,8 @@ class InjectAction extends CommonAction{
$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();
@@ -15,11 +15,14 @@ class CloudAction extends CommonAction{
}else{
$spModel=D("Sp");
$siteModel=D("Site");
$mediaModel=D("Media");
if($userInfo['sp_ids']&&$userInfo['grade']>=3){
$site_lists=$spModel->field("B.id,B.`name`")->join(" A join sh_site B on A.site_id = B.id")->where("A.`status`=0 and A.id in(".$userInfo['sp_ids'].")")->select();