消息等

This commit is contained in:
2025-05-14 15:44:21 +08:00
parent 81cf5bd74e
commit 40c6a13cf4
6 changed files with 50 additions and 26 deletions

View File

@ -41,7 +41,24 @@
<if test="qo.storyId != null ">
and s.id = #{qo.storyId}
</if>
group by s.id
<choose>
<when test="qo.orderName != '' and qo.orderName != null ">
<choose>
<when test="qo.orderSort != '' and qo.orderSort != null ">
order by s.${qo.orderName} ${qo.orderSort}
</when>
<otherwise>
order by s.id desc
</otherwise>
</choose>
</when>
<otherwise>
order by s.id desc
</otherwise>
</choose>
</select>