日志按創建時間排序

This commit is contained in:
username 2024-08-08 11:59:25 +08:00
parent b5f679d45c
commit 86193cadba
1 changed files with 11 additions and 10 deletions

View File

@ -138,8 +138,9 @@
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if> <if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
and sts='Y' and sts='Y'
</trim> </trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts desc</if> <!-- <if test=" sort == null or sort == ''.toString() "> order by sorts desc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if> <!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>-->
<if test="create_time == null">order by create_time desc</if>
</select> </select>
<!-- 查询列表 字段采用or格式 --> <!-- 查询列表 字段采用or格式 -->