日志按創建時間排序
This commit is contained in:
parent
b5f679d45c
commit
86193cadba
|
@ -138,8 +138,9 @@
|
|||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<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 == 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="create_time == null">order by create_time desc</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
|
|
Loading…
Reference in New Issue