|
|
@@ -1,5 +1,6 @@
|
|
|
package com.cyksj.web.controller.manage.corp;
|
|
|
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
import com.alibaba.excel.support.ExcelTypeEnum;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
@@ -120,8 +121,13 @@ public class CorpTagController {
|
|
|
* 标签管理详情
|
|
|
*/
|
|
|
@GetMapping("/get/corpTag")
|
|
|
- public Result<Page<CorpTagBackView>> getCorpTagBackView(@RequestParam(defaultValue = "0") Integer start, @RequestParam(defaultValue = "10") Integer limit, @RequestParam(required = false, defaultValue = "1") Integer type, String name, String[] groupIds, String sort, String order) throws Exception {
|
|
|
- Page<CorpTagBackView> corpTagBackViews = corpTagService.getCorpTagBackView(start, limit, type, name, groupIds, sort, order);
|
|
|
+ public Result<Page<CorpTagBackView>> getCorpTagBackView(@RequestParam(defaultValue = "0") Integer start, @RequestParam(defaultValue = "10") Integer limit, @RequestParam(required = false, defaultValue = "1") Integer type, String name, String[] groupIds, String sort, String order, String tagIdStr) throws Exception {
|
|
|
+ Long adminId = StpUtil.getLoginIdAsLong();
|
|
|
+ //指定管理员可查看标签
|
|
|
+ if (adminId == 78l) {
|
|
|
+ tagIdStr = "etvj2DPQAAxqh9QlGJG4N1EbdQBNYGAA";
|
|
|
+ }
|
|
|
+ Page<CorpTagBackView> corpTagBackViews = corpTagService.getCorpTagBackView(start, limit, type, name, groupIds, sort, order, tagIdStr);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(corpTagBackViews);
|
|
|
}
|
|
|
|