|
@@ -78,7 +78,7 @@
|
|
|
<if test="param.suffix!=null and param.suffix != ''">
|
|
<if test="param.suffix!=null and param.suffix != ''">
|
|
|
and t2.EXTEND_NAME like CONCAT('%',#{param.suffix}, '%')
|
|
and t2.EXTEND_NAME like CONCAT('%',#{param.suffix}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- order by t1.ID desc
|
|
|
|
|
|
|
+ order by t1.CREATE_TIME desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryResourceCentreList" resultType="java.util.Map">
|
|
<select id="queryResourceCentreList" resultType="java.util.Map">
|
|
@@ -145,7 +145,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="param.sortflag !=null and param.sortflag != ''">
|
|
<if test="param.sortflag !=null and param.sortflag != ''">
|
|
|
<if test=" param.sortflag == 0">
|
|
<if test=" param.sortflag == 0">
|
|
|
- order by t1.ID desc
|
|
|
|
|
|
|
+ order by t1.CREATE_TIME desc
|
|
|
</if>
|
|
</if>
|
|
|
<if test=" param.sortflag == 1">
|
|
<if test=" param.sortflag == 1">
|
|
|
ORDER BY t1.IS_HOT=1 DESC, t1.VIEW_COUNT DESC
|
|
ORDER BY t1.IS_HOT=1 DESC, t1.VIEW_COUNT DESC
|
|
@@ -240,7 +240,7 @@
|
|
|
<if test="userId!=null and userId != ''">
|
|
<if test="userId!=null and userId != ''">
|
|
|
and t1.CREATE_USER =#{userId}
|
|
and t1.CREATE_USER =#{userId}
|
|
|
</if>
|
|
</if>
|
|
|
- ORDER BY t1.ID desc
|
|
|
|
|
|
|
+ ORDER BY t1.CREATE_TIME desc
|
|
|
limit 1
|
|
limit 1
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|