类的最上边写上这个:
@RunWith(SpringRunner.class)
@SpringBootTest
image.png
下边随便霍霍
@Test
public void asdasda(String[] args){
String bookid = "1457891363036319746";
//获取数据
QueryWrapper<DjBookCatalogue> djBookCatalogue = new QueryWrapper();
djBookCatalogue.eq("book_id",bookid);
List<DjBookCatalogue> list = djBookCatalogueService.list(djBookCatalogue);
//生成tree
}
image.png
可能会报错
image.png
对不起,失败了~~~
网友评论