Commit 244ce87c by “Kongxiangkun”

投票明细增加分页

parent e495fcc6
......@@ -135,10 +135,12 @@ public class ResearchQuestionsController {
@GetMapping("/list/all")
@ApiOperation(value = "调研问题列表pc端", notes = "所有问题", response = TrResearchQuestionVo.class)
public Response<TrResearchQuestionVo> listAll(
@ApiParam(name = "pageNo", value = "当前页") @RequestParam(name = "pageNo", required = false) Integer pageNo,
@ApiParam(name = "pageSize", value = "每页的个数") @RequestParam(name = "pageSize", required = false) Integer pageSize,
@ApiParam(name = "researchId", value = "调研id", required = true) @RequestParam(name = "researchId") Long researchId
) {
try {
return Response.ok(researchQuestionClient.listAll(researchId));
return Response.ok(researchQuestionClient.listByPage(pageSize, pageNo, researchId));
} catch (Exception e) {
LOGGER.error("", e);
return Response.fail(Constants.RESEARCH_MSG_BIZ_ERROR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment