|
|
@ -45,7 +45,7 @@ |
|
|
|
<when test="sortField == 'createTime'">a.create_time</when> |
|
|
|
<when test="sortField == 'auditTime'">a.audit_time</when> |
|
|
|
<!-- 其他字段不支持排序,使用默认排序 --> |
|
|
|
<otherwise>a.create_time</otherwise> |
|
|
|
<otherwise>a.audit_time</otherwise> |
|
|
|
</choose> |
|
|
|
<!-- 排序方向处理 --> |
|
|
|
<if test="sortOrder != null and sortOrder != ''"> |
|
|
@ -61,7 +61,7 @@ |
|
|
|
</when> |
|
|
|
<!-- 未指定排序字段时,使用默认的时间降序排序 --> |
|
|
|
<otherwise> |
|
|
|
a.create_time DESC |
|
|
|
a.audit_time DESC |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
</trim> |
|
|
|