Commit b164d13320ff832bcce92381e913a68eaf6f0585

Authored by 芯火源
1 parent fbcfb3e1

fix: 事件默认排序字段逻辑修复

... ... @@ -47,7 +47,7 @@ public class TkEventController extends BaseController {
47 47 throws ThingsboardException {
48 48 checkParameter("tbDeviceId", tbDeviceId);
49 49
50   - if (orderBy != null && orderBy.isEmpty()) {
  50 + if (orderBy == null || orderBy.isEmpty()) {
51 51 orderBy = ModelConstants.EVENT_TIME_COLUMN;
52 52 }
53 53 TimePageLink pageLink = createTimePageLink(pageSize, page, null, orderBy, orderType==null?"":orderType.name(), startTime, endTime);
... ...