|
@@ -58,8 +58,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="userId != null and userId !='' "> and q2.user_id = #{userId}</if>
|
|
<if test="userId != null and userId !='' "> and q2.user_id = #{userId}</if>
|
|
<if test="km != null and km!='' "> and q2.km = #{km}</if>
|
|
<if test="km != null and km!='' "> and q2.km = #{km}</if>
|
|
</where>
|
|
</where>
|
|
- order by q2.create_time asc
|
|
|
|
-
|
|
|
|
|
|
+ order by q2.create_time
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="sort==0">
|
|
|
|
+ asc
|
|
|
|
+ </when>
|
|
|
|
+ <when test="sort==1">
|
|
|
|
+ desc
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ asc
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|