init
This commit is contained in:
@@ -30,7 +30,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="query.type != null and query.type == 3">
|
||||
and t1.city_id = #{query.cityId}
|
||||
</if>
|
||||
order by t1.create_time desc
|
||||
<if test="query.type != null and query.type == 1">
|
||||
order by t1.sort desc, t1.create_time desc
|
||||
</if>
|
||||
<if test="query.type == null or query.type != 1">
|
||||
order by t1.create_time desc
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectDynamicImageList" resultType="java.lang.String">
|
||||
select t2.url
|
||||
@@ -54,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and t1.audit_status = #{bo.auditStatus}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
order by t1.sort desc, t1.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user