Authored by whb

修改排序

... ... @@ -29,7 +29,7 @@
UPDATE tbl_online_download SET title = :title, cover =:cover, file =:file, source = :source, source_link = :source_link, create_time = UNIX_TIMESTAMP() WHERE id = :id
</update>
<select id="getDownloadListByType">
SELECT * FROM tbl_online_download WHERE `type` = :type LIMIT :offset, :limit
SELECT * FROM tbl_online_download WHERE `type` = :type ORDER BY create_time DESC LIMIT :offset, :limit
</select>
<select id="getDownloadTotalByType">
SELECT COUNT(*) FROM tbl_online_download WHERE `type` = :type
... ... @@ -41,6 +41,6 @@
DELETE FROM tbl_online_download WHERE id = :id
</delete>
<update id="setSeller">
UPDATE tbl_online_seller SET #up#,create_time = UNIX_TIMESTAMP() WHERE id = :id
UPDATE tbl_online_seller SET #up# WHERE id = :id
</update>
</sqlMap>
\ No newline at end of file
... ...