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