Browse Source

新增时间倒序排序

tags/V1.8.0^2
xiaoying 1 year ago
parent
commit
493b95cc77
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/ThWestreamMessageServiceImpl.java

+ 4
- 1
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/ThWestreamMessageServiceImpl.java View File

IPage<ThWestreamMessage> page = new Page<>(query.getPage(), query.getLimit()); IPage<ThWestreamMessage> page = new Page<>(query.getPage(), query.getLimit());


IPage<ThWestreamMessage> pageDate = westreamMessageMapper.selectPage(page, Wrappers.<ThWestreamMessage>lambdaQuery() IPage<ThWestreamMessage> pageDate = westreamMessageMapper.selectPage(page, Wrappers.<ThWestreamMessage>lambdaQuery()
.eq(ThWestreamMessage::getOpenid, query.getOpenId()).eq(ThWestreamMessage::getTenantId, query.getTenantId()).eq(BaseEntity::getMark, 1));
.eq(ThWestreamMessage::getOpenid, query.getOpenId())
.eq(ThWestreamMessage::getTenantId, query.getTenantId())
.orderByDesc(BaseEntity::getCreateTime)
.eq(BaseEntity::getMark, 1));


return JsonResult.success(pageDate); return JsonResult.success(pageDate);
} }

Loading…
Cancel
Save