Authored by Lixiaodi

bug修改

... ... @@ -33,7 +33,7 @@
<select id="selectActiveByCode" resultType="com.yoho.ufo.model.resource.Resources">
select <include refid="Base_Column_List" /> from resources
where status=1 and code = #{code} and publish_time &gt;= unix_timestamp() order by publish_time,id
where status=1 and code = #{code} and publish_time &lt;= unix_timestamp() order by publish_time,id
limit 1
</select>
... ...