@@ -400,7 +400,7 @@ class CenterAction extends Action
...
@@ -400,7 +400,7 @@ class CenterAction extends Action
$end=date('Y-m-d H:i:s',strtotime($_GET["end"]));
$end=date('Y-m-d H:i:s',strtotime($_GET["end"]));
}
}
$sqlTotal="SELECT count(1) total FROM sh_hotel_media_map_$spid WHERE status_inject=1 AND updatetime BETWEEN '$start' AND '$end';";
$sqlTotal="SELECT count(1) total FROM sh_hotel_media_map_$spid WHERE updatetime BETWEEN '$start' AND '$end';";
// echo $sqlTotal;
// echo $sqlTotal;
$totalArr=M("")->query($sqlTotal);
$totalArr=M("")->query($sqlTotal);
...
@@ -461,7 +461,7 @@ class CenterAction extends Action
...
@@ -461,7 +461,7 @@ class CenterAction extends Action
$sql="SELECT $fields"
$sql="SELECT $fields"
." FROM (SELECT hm.media_id,h.code,hm.status,hm.status_inject FROM sh_hotel_media_map_$spid hm,sh_hotel h"
." FROM (SELECT hm.media_id,h.code,hm.status,hm.status_inject FROM sh_hotel_media_map_$spid hm,sh_hotel h"
." WHERE hm.status_inject=1 AND hm.updatetime BETWEEN '$start' AND '$end' AND h.id=hm.hotel_id ORDER BY hm.updatetime,hm.media_id ASC LIMIT $limit_from,$page_size) hm"
." WHERE hm.updatetime BETWEEN '$start' AND '$end' AND h.id=hm.hotel_id ORDER BY hm.updatetime,hm.media_id ASC LIMIT $limit_from,$page_size) hm"