Commit 2ce27b1b authored by 吴贤德's avatar 吴贤德

增量媒资列表查询增加按updatetime,media_id Asc

parent 81053f9a
...@@ -151,7 +151,7 @@ class CenterAction extends Action ...@@ -151,7 +151,7 @@ class CenterAction extends Action
.",mw.year,mw.type,mw.score,mw.region,mw.actor,mw.director" .",mw.year,mw.type,mw.score,mw.region,mw.actor,mw.director"
.",h.code hotelId,hm.status,hm.status_inject statusInject" .",h.code hotelId,hm.status,hm.status_inject statusInject"
." FROM (SELECT media_id,hotel_id,status,status_inject FROM sh_hotel_media_map_$spid" ." 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_media_wasu mw ON mw.id=hm.media_id"
." JOIN sh_hotel h ON h.id=hm.hotel_id"; ." JOIN sh_hotel h ON h.id=hm.hotel_id";
...@@ -226,6 +226,7 @@ class CenterAction extends Action ...@@ -226,6 +226,7 @@ class CenterAction extends Action
$page_size = 10; $page_size = 10;
$rawData = @file_get_contents("php://input"); $rawData = @file_get_contents("php://input");
// echo "rawData:".$rawData;
$json = json_decode($rawData, true); $json = json_decode($rawData, true);
$spid = $json["spid"]; $spid = $json["spid"];
...@@ -245,7 +246,7 @@ class CenterAction extends Action ...@@ -245,7 +246,7 @@ class CenterAction extends Action
. ",mw.year,mw.type,mw.score,mw.region,mw.actor,mw.director" . ",mw.year,mw.type,mw.score,mw.region,mw.actor,mw.director"
. ",h.code hotelId,hm.status,hm.status_inject statusInject" . ",h.code hotelId,hm.status,hm.status_inject statusInject"
. " FROM (SELECT media_id,hotel_id,status,status_inject FROM sh_hotel_media_map_$spid" . " 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_media_wasu mw ON mw.id=hm.media_id"
. " JOIN sh_hotel h ON h.id=hm.hotel_id"; . " JOIN sh_hotel h ON h.id=hm.hotel_id";
...@@ -266,6 +267,7 @@ class CenterAction extends Action ...@@ -266,6 +267,7 @@ class CenterAction extends Action
// exit; // exit;
$data = $this->HttpPost($api_push, $json); $data = $this->HttpPost($api_push, $json);
// echo "post result: ".$data;
$jsonR = json_decode($data, true); $jsonR = json_decode($data, true);
if ($jsonR["code"] == 0) { if ($jsonR["code"] == 0) {
......
...@@ -99,7 +99,7 @@ class FrontAction extends Action ...@@ -99,7 +99,7 @@ class FrontAction extends Action
$sql="SELECT mw.id,mw.code,mw.url_play,hm.status,hm.status_inject" $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" ." 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"; ." JOIN sh_media_wasu mw ON mw.id=hm.media_id";
......
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