Commit 6f18ef81 authored by 李秀明's avatar 李秀明

fix: BUG#30727 演练报告,点击演练报告,查看到的演练报告列表,列表不支持点击排序

parent 862fe30f
......@@ -77,4 +77,10 @@ public class PlanReport extends BaseEntity {
@TableField(exist = false)
private String equipName;
@TableField(exist = false)
private String sortField;
@TableField(exist = false)
private String sortOrder;
}
......@@ -79,8 +79,22 @@
AND #{endDate} >= a.drill_date
</if>
</where>
order by a.create_date desc
LIMIT #{pageNumber},#{pageSize}
ORDER BY
<if test="sortField != null and sortField != '' and sortOrder != null and sortOrder != ''">
<choose>
<when test="sortOrder == 'ascend'">
a.${sortField} ASC
</when>
<otherwise>
a.${sortField} DESC
</otherwise>
</choose>
</if>
<if test="sortField == null or sortField == ''">
a.create_date DESC
</if>
LIMIT
#{pageNumber},#{pageSize}
</select>
<select id="getById" resultType="com.yeejoin.amos.fas.dao.entity.PlanReport">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment