@Test public void list() throws Exception { Paging<TaskTable> paging = new Paging<>(); paging.setData(new TaskTable()); String requestJson = JSONObject.toJSONString(paging); mockMvc.perform(MockMvcRequestBuilders.post("/tableEntity/list") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }
@RequestMapping(value = "/list", method = RequestMethod.POST) public ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging) throws SQLException { return ServiceResult.success(tableEntityService.findTableEntityPageList(paging)); }
TableEntityController { @RequestMapping(value = "/list", method = RequestMethod.POST) public ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging) throws SQLException { return ServiceResult.success(tableEntityService.findTableEntityPageList(paging)); } }
TableEntityController { @RequestMapping(value = "/list", method = RequestMethod.POST) public ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging) throws SQLException { return ServiceResult.success(tableEntityService.findTableEntityPageList(paging)); }  }
TableEntityController { @RequestMapping(value = "/list", method = RequestMethod.POST) public ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging) throws SQLException { return ServiceResult.success(tableEntityService.findTableEntityPageList(paging)); }  @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddTableEntity.class) @RequestBody TaskTable taskTable, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/adds", method = RequestMethod.POST) ServiceResult<String> adds(@Validated(AddTableEntity.class) @RequestBody List<TaskTable> list, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateTableEntity.class) @RequestBody TaskTable taskTable, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteTableEntity.class) @RequestBody TaskTable taskTable, @CurrentUser LoginUser user, Errors errors); }
TableEntityController { @RequestMapping(value = "/list", method = RequestMethod.POST) public ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging) throws SQLException { return ServiceResult.success(tableEntityService.findTableEntityPageList(paging)); }  @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<TaskTableView>> list(@RequestBody Paging<TaskTable> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddTableEntity.class) @RequestBody TaskTable taskTable, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/adds", method = RequestMethod.POST) ServiceResult<String> adds(@Validated(AddTableEntity.class) @RequestBody List<TaskTable> list, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateTableEntity.class) @RequestBody TaskTable taskTable, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteTableEntity.class) @RequestBody TaskTable taskTable, @CurrentUser LoginUser user, Errors errors);  }