// @Test public void testUserPage() { // BookDTO bookDTO = new BookDTO(); // bookDTO.setUserId(13751338740L); int start = 0; int limit = 30; String sort = "id"; String dir = "desc"; BookQueryConditionDTO queryConditionDTO = new BookQueryConditionDTO(); queryConditionDTO.setUserId(13751338740L); // 查询 Page<BookDTO> page = bookService.findBookPage(queryConditionDTO, start, limit, sort, dir); for (BookDTO e : page.getLists()) { System.out.println(e); } }
// @Test public void testUpdateUser() { BookDTO book = new BookDTO(); int start = 0; int limit = 30; String sort = "id"; String dir = "desc"; BookQueryConditionDTO queryConditionDTO = new BookQueryConditionDTO(); queryConditionDTO.setUserId(13751338740L); // 查询 Page<BookDTO> page = bookService.findBookPage(queryConditionDTO, start, limit, sort, dir); for (BookDTO e : page.getLists()) { book = e; System.out.println(e); } // 修改 book.setRemake("小小"); book.setCreater("小小"); System.out.println(book); bookService.updateBook(book); }