@Test public void list() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/groupdbSetEntry .contentType(MediaType.APPLICATION_JSON_UTF8) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }
@RequestMapping(value = "/{dbsetId}/list") public ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId) throws Exception { if (null == dbsetId || dbsetId == 0) { return ServiceResult.success(ListUtils.EMPTY_LIST); } return ServiceResult.success(dataBaseSetEntryDao.getAllDbSetEntryByDbSetId(dbsetId)); }
DatabaseSetEntryController { @RequestMapping(value = "/{dbsetId}/list") public ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId) throws Exception { if (null == dbsetId || dbsetId == 0) { return ServiceResult.success(ListUtils.EMPTY_LIST); } return ServiceResult.success(dataBaseSetEntryDao.getAllDbSetEntryByDbSetId(dbsetId)); } }
DatabaseSetEntryController { @RequestMapping(value = "/{dbsetId}/list") public ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId) throws Exception { if (null == dbsetId || dbsetId == 0) { return ServiceResult.success(ListUtils.EMPTY_LIST); } return ServiceResult.success(dataBaseSetEntryDao.getAllDbSetEntryByDbSetId(dbsetId)); }  }
DatabaseSetEntryController { @RequestMapping(value = "/{dbsetId}/list") public ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId) throws Exception { if (null == dbsetId || dbsetId == 0) { return ServiceResult.success(ListUtils.EMPTY_LIST); } return ServiceResult.success(dataBaseSetEntryDao.getAllDbSetEntryByDbSetId(dbsetId)); }  @RequestMapping(value = "/{dbsetId}/list") ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId); @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<DatabaseSetEntryView>> loadPageList(@RequestBody Paging<DatabaseSetEntry> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/adds", method = RequestMethod.POST) ServiceResult<String> adds(@Validated(AddDbSetEntry.class) @RequestBody List<DatabaseSetEntry> list, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/sync") ServiceResult<String> sync(@RequestParam("id") Long id, @CurrentUser LoginUser user); @RequestMapping(value = "/check") ConfigCkeckResult check(@RequestParam("id") Long id, @CurrentUser LoginUser user); @RequestMapping(value = "/syncdb") ServiceResult<String> syncdb(@Validated(AddDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping("/buttons") ServiceResult getProjectButton(@CurrentUser LoginUser user); }
DatabaseSetEntryController { @RequestMapping(value = "/{dbsetId}/list") public ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId) throws Exception { if (null == dbsetId || dbsetId == 0) { return ServiceResult.success(ListUtils.EMPTY_LIST); } return ServiceResult.success(dataBaseSetEntryDao.getAllDbSetEntryByDbSetId(dbsetId)); }  @RequestMapping(value = "/{dbsetId}/list") ServiceResult<List<DatabaseSetEntry>> list(@PathVariable("dbsetId") Long dbsetId); @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<DatabaseSetEntryView>> loadPageList(@RequestBody Paging<DatabaseSetEntry> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/adds", method = RequestMethod.POST) ServiceResult<String> adds(@Validated(AddDbSetEntry.class) @RequestBody List<DatabaseSetEntry> list, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/sync") ServiceResult<String> sync(@RequestParam("id") Long id, @CurrentUser LoginUser user); @RequestMapping(value = "/check") ConfigCkeckResult check(@RequestParam("id") Long id, @CurrentUser LoginUser user); @RequestMapping(value = "/syncdb") ServiceResult<String> syncdb(@Validated(AddDbSetEntry.class) @RequestBody DatabaseSetEntry dbsetEntry, @CurrentUser LoginUser user, Errors errors); @RequestMapping("/buttons") ServiceResult getProjectButton(@CurrentUser LoginUser user);  }