征求意见
This commit is contained in:
parent
2bf0bc8fb3
commit
392e5e57a8
|
@ -127,7 +127,7 @@ public class ApiSuggestionController extends ApiBaseController {
|
||||||
@GetMapping("suggestionCommentPage")
|
@GetMapping("suggestionCommentPage")
|
||||||
public void suggestionCommentPage(String suggestionId) {
|
public void suggestionCommentPage(String suggestionId) {
|
||||||
LambdaQueryWrapper<SuggestionComment> qw = new LambdaQueryWrapper<SuggestionComment>();
|
LambdaQueryWrapper<SuggestionComment> qw = new LambdaQueryWrapper<SuggestionComment>();
|
||||||
qw.eq(SuggestionComment::getSuggestionId, suggestionId);
|
qw.eq(SuggestionComment::getSuggestionId, suggestionId).orderByDesc(SuggestionComment::getCreatedAt);
|
||||||
Page<SuggestionComment> paged = suggestionCommentService.page(new Page<>(getPageNum(), getPageSize()), qw);
|
Page<SuggestionComment> paged = suggestionCommentService.page(new Page<>(getPageNum(), getPageSize()), qw);
|
||||||
render(Ret.ok().paged(paged));
|
render(Ret.ok().paged(paged));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue