Bladeren bron

新增时间倒序排序

tags/V1.8.0^2
xiaoying 1 jaar geleden
bovenliggende
commit
493b95cc77
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  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 Bestand weergeven

@@ -47,7 +47,10 @@ public class ThWestreamMessageServiceImpl extends ServiceImpl<ThWestreamMessageM
IPage<ThWestreamMessage> page = new Page<>(query.getPage(), query.getLimit());

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);
}

Laden…
Annuleren
Opslaan