@AuthIgnore
@PostMapping("typeList")
public R typeList() {
// List<PfNotice> userList = pfNoticeService.selectList(new
// EntityWrapper<PfNotice>());
Map<String, Object> map = new HashMap<>();
map.put("fid", 0);
List<NovelType> fList = novelTypeService.selectByMap(map);//
Map<String , Object> data = new HashMap<>();
for(int i=0;i<fList.size();i++){
Map<String , Object> wh = new HashMap<>();
wh.put("fid", fList.get(i).getTid());
List<NovelType> sList = novelTypeService.selectByMap(wh);//
//sList.add("count", sList.size());
data.put(fList.get(i).getTname(),sList);
}
// System.out.print(Arrays.toString(map));
return R.ok().put("data", data);
}
uniapp 写小说实现分类(只放核心代码)
猜你喜欢
转载自blog.csdn.net/qq_34037264/article/details/103809393
今日推荐
周排行