修复排序功能

This commit is contained in:
chiguangxu
2018-03-19 16:55:26 +08:00
parent ee297945b9
commit 117614311d
5 changed files with 58 additions and 6 deletions

View File

@@ -68,7 +68,16 @@
<if test="dobeginDate!=null and dobeginDate!='' and doendDate!=null and doendDate!=''">
AND r.edit_time between #{dobeginDate} and #{doendDate}
</if>
order by r.create_time desc
<choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy}
</when>
<otherwise>
ORDER BY r.create_time desc
</otherwise>
</choose>
</select>
<!-- 根据来函号查询 -->
<select id="getRequestInfoByRequestNumber" parameterType="java.lang.String" resultMap="BaseResultMap">