...
|
...
|
@@ -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 <= unix_timestamp() order by publish_time,id
|
|
|
where status=1 and code = #{code} and publish_time <= unix_timestamp() order by publish_time desc,id
|
|
|
limit 1
|
|
|
</select>
|
|
|
|
...
|
...
|
|