...
|
...
|
@@ -52,6 +52,7 @@ |
|
|
SELECT * FROM `tbl_news` #where# order by create_time DESC LIMIT :offset, :limit
|
|
|
</select>
|
|
|
<select id="getListByDateHits">
|
|
|
SELECT * FROM tbl_news WHERE `tag` = :tag AND #where# ORDER BY UNIX_TIMESTAMP(FROM_UNIXTIME(create_time,'%Y-%m-%d')) DESC, hits DESC LIMIT :offset, :limit
|
|
|
<!--SELECT * FROM tbl_news WHERE `tag` = :tag AND #where# ORDER BY UNIX_TIMESTAMP(FROM_UNIXTIME(create_time,'%Y-%m-%d')) DESC, hits DESC LIMIT :offset, :limit-->
|
|
|
SELECT * FROM tbl_news WHERE `tag` = :tag AND #where# or is_video=1 ORDER BY hits DESC LIMIT :offset, :limit
|
|
|
</select>
|
|
|
</sqlMap> |
|
|
\ No newline at end of file |
...
|
...
|
|