Browse Source

[A端][修复]:用户tag过滤计数接口更改

release_toaliyun_real
hupeng 7 years ago
parent
commit
f0d327a8ca
1 changed files with 13 additions and 68 deletions
  1. +13
    -68
      mallinkAdmin/src/main/java/com/iformall/controller/WxTagsController.java

+ 13
- 68
mallinkAdmin/src/main/java/com/iformall/controller/WxTagsController.java View File

@@ -91,74 +91,19 @@ public class WxTagsController extends BaseController {
}
@ApiOperation("查询用户人群")
@GetMapping("findUserByTag")
public Result findUserByTag(Long[] tagIds) {
// WxTags wxTags = new WxTags();
// List<Long> ids = new ArrayList<>();
// for(Long id :tagIds) {
// ids.add(id);
// }
// wxTags.setIds(ids);
// PageInfo<WxTags> page = wxTagsService.listAsPage(wxTags, 1, 5000);
// List<WxTags> list = page.getList();
// StringBuffer names= new StringBuffer();
// for(WxTags t:list) {
// names.append(t.getName()+"/");
// }
// Map<String,Object> map = new HashMap<>();
// String endName="";
// if(names.length()>0) {
// endName = names.toString().substring(0,names.length()-1);
// }
// map.put("names",endName );
// map.put("tagIds", ids);
long count = wxCUserTagsService.findCountByTag(getTenantId(), Arrays.asList(tagIds));
@ApiOperation("查询微信用户人群")
@GetMapping("findCUserCountByTag")
public Result findCUserCountByTag(Long[] tagIds) {
long count = wxCUserTagsService.findCUserCountByTag(getTenantId(), Arrays.asList(tagIds));
return new ResultData(Result.SUCCESS,"查询成功",count);
}
// @ApiOperation("分页列表接口")
// @GetMapping("list")
// @ApiImplicitParams({
// @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true),
// @ApiImplicitParam(name="pageSize",value="每页条数",dataType="int", paramType = "query",required=true)})
// public ResultData list(@ModelAttribute WxTags wxTags,Integer pageNum, Integer pageSize) {
// if (null == wxTags) wxTags = new WxTags();
// final PageInfo<WxTags> page = wxTagsService.listAsPage(wxTags, pageNum, pageSize);
// return new ResultData(page);
// }
//
// @ApiOperation("新增接口")
// @PostMapping("add")
// public ResultData add(@RequestBody WxTags wxTags) {
// //Assert.notNull(wxTags.getName(), "角色名不能为空");
// //Assert.isTrue(!checkUnique(sysRole.getName(), null), "重复的角色名");
// wxTagsService.saveOrUpdate(wxTags);
// return new ResultData();
// }
//
// @ApiOperation("根据id更新接口")
// @PostMapping("update")
// public ResultData update(@RequestBody WxTags wxTags) {
// wxTagsService.saveOrUpdate(wxTags);
// return new ResultData();
// }
//
// @ApiOperation("根据id删除接口")
// @GetMapping("/del")
// @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true)
// public ResultData delete(Long id) {
// wxTagsService.deleteById(id);
// return new ResultData(Result.SUCCESS, "删除成功", null);
// }
//
// @ApiOperation("根据id查询接口")
// @GetMapping("/findById")
// @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true)
// public ResultData findById(Long id) {
// return new ResultData(Result.SUCCESS,"查询成功",wxTagsService.getById(id));
// }

@ApiOperation("查询会员用户人群")
@GetMapping("findCountByTag")
public Result findCountByTag(Long[] tagIds) {
long count = wxCUserTagsService.findCountByTag(getTenantId(), Arrays.asList(tagIds));
return new ResultData(Result.SUCCESS,"查询成功",count);
}


}

Loading…
Cancel
Save