|
@@ -92,7 +92,17 @@
|
|
<select id="searchEmailList" resultMap="BaseResultMap">
|
|
<select id="searchEmailList" resultMap="BaseResultMap">
|
|
<include refid="selectEmailParse"/>
|
|
<include refid="selectEmailParse"/>
|
|
<include refid="sqlwhereSearch"/>
|
|
<include refid="sqlwhereSearch"/>
|
|
- order by epi.parse_date desc
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="sort != null and sort !='' and sort=='parseDate' and order != null and order !=''">
|
|
|
|
+ order by epi.parse_date ${order}
|
|
|
|
+ </when>
|
|
|
|
+ <when test="sort != null and sort !='' and sort=='emailDate' and order != null and order !=''">
|
|
|
|
+ order by epi.email_date ${order}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ order by epi.parse_date desc
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
limit #{offset},#{pageSize}
|
|
limit #{offset},#{pageSize}
|
|
</select>
|
|
</select>
|
|
<select id="searchEmailById" resultMap="BaseResultMap">
|
|
<select id="searchEmailById" resultMap="BaseResultMap">
|