|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.simple.controller; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
@@ -16,6 +17,7 @@ import com.simple.common.Result; |
|
|
|
import com.simple.common.ResultData; |
|
|
|
import com.simple.domain.po.WxTags; |
|
|
|
import com.simple.domain.vo.WxTagsVo; |
|
|
|
import com.simple.service.WxCUserTagsService; |
|
|
|
import com.simple.service.WxTagsService; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
@@ -28,6 +30,9 @@ public class WxTagsController extends BaseController |
|
|
|
{ |
|
|
|
@Autowired |
|
|
|
private WxTagsService wxTagsService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxCUserTagsService wxCUserTagsService; |
|
|
|
|
|
|
|
private Logger logger = Logger.getLogger(WxTagsController.class); |
|
|
|
|
|
|
|
@@ -104,10 +109,14 @@ public class WxTagsController extends BaseController |
|
|
|
names.append(t.getName()+"/"); |
|
|
|
} |
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
map.put("names", names.toString().substring(0,names.length()-1)); |
|
|
|
String endName=""; |
|
|
|
if(names.length()>0) { |
|
|
|
endName = names.toString().substring(0,names.length()-1); |
|
|
|
} |
|
|
|
map.put("names",endName ); |
|
|
|
map.put("ids", ids); |
|
|
|
map.put("userCout", 0); |
|
|
|
return new ResultData(Result.SUCCESS,"查询成功"); |
|
|
|
map.put("userCout", wxCUserTagsService.findCountByTag(Arrays.asList(tagIds))); |
|
|
|
return new ResultData(Result.SUCCESS,"查询成功",map); |
|
|
|
} |
|
|
|
|
|
|
|
// @ApiOperation("分页列表接口") |
|
|
|
|