Commit 4e5a0662 by “Kongxiangkun”

投票列表增加分页参数

parent 7fcbcda6
...@@ -135,10 +135,12 @@ public class ResearchQuestionsController { ...@@ -135,10 +135,12 @@ public class ResearchQuestionsController {
@GetMapping("/list/all") @GetMapping("/list/all")
@ApiOperation(value = "调研问题列表pc端", notes = "所有问题", response = TrResearchQuestionVo.class) @ApiOperation(value = "调研问题列表pc端", notes = "所有问题", response = TrResearchQuestionVo.class)
public Response<TrResearchQuestionVo> listAll( 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 @ApiParam(name = "researchId", value = "调研id", required = true) @RequestParam(name = "researchId") Long researchId
) { ) {
try { try {
return Response.ok(researchQuestionClient.list(researchId)); return Response.ok(researchQuestionClient.listAll(researchId, pageSize, pageNo));
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("", e); LOGGER.error("", e);
return Response.fail(Constants.RESEARCH_MSG_BIZ_ERROR); 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