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
2ce27b1b
Commit
2ce27b1b
authored
Jul 29, 2019
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增量媒资列表查询增加按updatetime,media_id Asc
parent
81053f9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CenterAction.class.php
SooonerHotel/App/Lib/Action/Api/CenterAction.class.php
+4
-2
FrontAction.class.php
SooonerHotel/App/Lib/Action/Api/FrontAction.class.php
+1
-1
No files found.
SooonerHotel/App/Lib/Action/Api/CenterAction.class.php
View file @
2ce27b1b
...
...
@@ -151,7 +151,7 @@ class CenterAction extends Action
.
",mw.year,mw.type,mw.score,mw.region,mw.actor,mw.director"
.
",h.code hotelId,hm.status,hm.status_inject statusInject"
.
" FROM (SELECT media_id,hotel_id,status,status_inject FROM sh_hotel_media_map_
$spid
"
.
" WHERE updatetime BETWEEN'
$start
' AND '
$end
' ORDER BY updatetime ASC LIMIT
$limit_from
,
$page_size
) hm"
.
" WHERE updatetime BETWEEN'
$start
' AND '
$end
' ORDER BY updatetime
,media_id
ASC LIMIT
$limit_from
,
$page_size
) hm"
.
" JOIN sh_media_wasu mw ON mw.id=hm.media_id"
.
" JOIN sh_hotel h ON h.id=hm.hotel_id"
;
...
...
@@ -226,6 +226,7 @@ class CenterAction extends Action
$page_size
=
10
;
$rawData
=
@
file_get_contents
(
"php://input"
);
// echo "rawData:".$rawData;
$json
=
json_decode
(
$rawData
,
true
);
$spid
=
$json
[
"spid"
];
...
...
@@ -245,7 +246,7 @@ class CenterAction extends Action
.
",mw.year,mw.type,mw.score,mw.region,mw.actor,mw.director"
.
",h.code hotelId,hm.status,hm.status_inject statusInject"
.
" FROM (SELECT media_id,hotel_id,status,status_inject FROM sh_hotel_media_map_
$spid
"
.
" WHERE updatetime BETWEEN'
$start
' AND '
$end
' ORDER BY updatetime ASC LIMIT
$limit_from
,
$page_size
) hm"
.
" WHERE updatetime BETWEEN'
$start
' AND '
$end
' ORDER BY updatetime
,media_id
ASC LIMIT
$limit_from
,
$page_size
) hm"
.
" JOIN sh_media_wasu mw ON mw.id=hm.media_id"
.
" JOIN sh_hotel h ON h.id=hm.hotel_id"
;
...
...
@@ -266,6 +267,7 @@ class CenterAction extends Action
// exit;
$data
=
$this
->
HttpPost
(
$api_push
,
$json
);
// echo "post result: ".$data;
$jsonR
=
json_decode
(
$data
,
true
);
if
(
$jsonR
[
"code"
]
==
0
)
{
...
...
SooonerHotel/App/Lib/Action/Api/FrontAction.class.php
View file @
2ce27b1b
...
...
@@ -99,7 +99,7 @@ class FrontAction extends Action
$sql
=
"SELECT mw.id,mw.code,mw.url_play,hm.status,hm.status_inject"
.
" FROM (SELECT media_id,hotel_id,status,status_inject FROM sh_hotel_media_map_
$spid
"
.
" WHERE hotel_id=
$hid
AND updatetime BETWEEN '
$start
' AND '
$end
' ORDER BY updatetime ASC LIMIT
$limit_from
,
$page_size
) hm"
.
" WHERE hotel_id=
$hid
AND updatetime BETWEEN '
$start
' AND '
$end
' ORDER BY updatetime
,media_id
ASC LIMIT
$limit_from
,
$page_size
) hm"
.
" JOIN sh_media_wasu mw ON mw.id=hm.media_id"
;
...
...
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