add: 内外部会议模块排序功能

This commit is contained in:
wxyclub
2023-10-18 11:56:19 +08:00
parent fc088d1e6a
commit 5d8bed9af2
3 changed files with 21 additions and 3 deletions
@@ -102,7 +102,15 @@
where iom.VALID_FLAG = 0
<include refid="Base_Where_Clause" />
<include refid="MeetingTopic_where" />
order by #{sortField} #{sortMode}
order by
<choose>
<when test="sortField == 'AGENDA_NAME'">
mt.${sortField} ${sortMode}
</when>
<otherwise>
iom.${sortField} ${sortMode}
</otherwise>
</choose>
limit ${pager.startIndex-1},${pageSize}
</select>
</mapper>