Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
68e22c07
Commit
68e22c07
authored
Aug 05, 2019
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复播放日志查询bug (播放日志表的media_id 对应 media_wasu 表的 code)
parent
0f5feb3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
PlayLogModel.class.php
SooonerHotel/App/Lib/Model/PlayLogModel.class.php
+5
-1
No files found.
SooonerHotel/App/Lib/Model/PlayLogModel.class.php
View file @
68e22c07
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment