Authored by caoyan

Merge branch 'dev_鉴定优化_20190611' into test6.9.6

... ... @@ -246,14 +246,16 @@
</if>
where 1=1
<include refid="Query_Order_Sql" />
<if test="buyerOrderReq.sortRule!=null and buyerOrderReq.sortRule!=''">
order by a.create_time #{buyerOrderReq.sortRule}
</if>
<if test="buyerOrderReq.sortRule==null or buyerOrderReq.sortRule=''">
order by a.create_time desc
</if>
<choose>
<when test="buyerOrderReq.sortRule!=null and buyerOrderReq.sortRule=='asc'">
order by a.create_time asc
</when>
<otherwise>
order by a.create_time desc
</otherwise>
</choose>
<if test="buyerOrderReq.start!=null and buyerOrderReq.size != null">
limit #{buyerOrderReq.start},#{buyerOrderReq.size}
limit #{buyerOrderReq.start},#{buyerOrderReq.size}
</if>
</select>
... ...