Commit 68e22c07 authored by 吴贤德's avatar 吴贤德

修复播放日志查询bug (播放日志表的media_id 对应 media_wasu 表的 code)

parent 0f5feb3e
......@@ -37,7 +37,11 @@ class PlayLogModel extends RelationModel{
$where .= $sort." ".$limit;
$fields = " A.*,B.`name` sp_name,C.`name` hotel_name,D.`title` media_name ";
}
$sql = "select ".$fields." from sh_log_play_$searchMonth A join sh_sp B on A.sp_id=B.id join sh_hotel C on A.hotel_id=C.id join sh_media_wasu D on A.media_id=D.id where 1=1 ".$where.";";
$sql = "select ".$fields." from sh_log_play_$searchMonth A"
." join sh_sp B on A.sp_id=B.id"
." join sh_hotel C on A.hotel_id=C.id"
." join sh_media_wasu D on A.media_id=D.code"
." where 1=1 ".$where.";";
// echo $sql;
return $model->query($sql);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment