|
|
@ -11,11 +11,9 @@ import com.epmet.dto.result.CorrelationTagListResultDTO; |
|
|
|
import com.epmet.dto.result.TagInfoResultDTO; |
|
|
|
import com.epmet.service.TagCustomerService; |
|
|
|
import com.epmet.service.TagService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -146,4 +144,17 @@ public class TagController { |
|
|
|
tagCustomerService.initTagScope(tokenDto.getCustomerId()); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 钉钉实时动态,获取网格所属社区下, 的标签列表 只返回tagId,tagName |
|
|
|
* @param gridId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("getAgencyTag/{gridId}") |
|
|
|
public Result<List<TagCustomerDTO>> getAgencyTag(@PathVariable("gridId")String gridId){ |
|
|
|
if(StringUtils.isBlank(gridId)){ |
|
|
|
return new Result<>(); |
|
|
|
} |
|
|
|
return new Result<List<TagCustomerDTO>>().ok(tagCustomerService.getAgencyTag(gridId)); |
|
|
|
} |
|
|
|
} |
|
|
|