|
|
|
@@ -57,10 +57,31 @@ public class WxTagsController extends BaseController |
|
|
|
} |
|
|
|
type1List.add(vo); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS,"ok",type1List); |
|
|
|
return new ResultData(Result.SUCCESS,"查询成功",type1List); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("getPeopleTagList") |
|
|
|
@ApiOperation("用户人群tag接口") |
|
|
|
public ResultData getPeopleTagList() { |
|
|
|
List<WxTagsVo> type2List =new ArrayList<>(); |
|
|
|
List<WxTags> type2s = wxTagsService.findType2Value(null); |
|
|
|
for(WxTags wt:type2s) { |
|
|
|
WxTagsVo v = new WxTagsVo(); |
|
|
|
v.setValue(wt.getType2()); |
|
|
|
List<WxTagsVo> list = new ArrayList<>(); |
|
|
|
WxTags tag = new WxTags(); |
|
|
|
tag.setType2(wt.getType2()); |
|
|
|
PageInfo<WxTags> page = wxTagsService.listAsPage(tag, 1, 1000); |
|
|
|
for(WxTags wxT : page.getList()) { |
|
|
|
WxTagsVo wxVo = new WxTagsVo(); |
|
|
|
wxVo.setValue(wxT.getName()); |
|
|
|
list.add(wxVo); |
|
|
|
} |
|
|
|
v.setSubTags(list); |
|
|
|
type2List.add(v); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS,"查询成功",type2List); |
|
|
|
} |
|
|
|
|
|
|
|
// @ApiOperation("分页列表接口") |
|
|
|
// @GetMapping("list") |
|
|
|
|