From 94e3a209bb9a31c4ddbd31494bb1628f6fe2e96e Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期三, 12 十月 2022 17:54:49 +0800 Subject: [PATCH] 新增首页工单 办事指南排行榜接口 导办人员排行榜接口 组织排行榜接口 新增办事指南统计接口 导办人员统计接口 组织胖行榜统计接口 --- flower_city/src/main/java/com/dg/core/controller/ReplyTemplateController.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/controller/ReplyTemplateController.java b/flower_city/src/main/java/com/dg/core/controller/ReplyTemplateController.java index 7bd2b3d..6be56ea 100644 --- a/flower_city/src/main/java/com/dg/core/controller/ReplyTemplateController.java +++ b/flower_city/src/main/java/com/dg/core/controller/ReplyTemplateController.java @@ -44,6 +44,17 @@ { Page<ReplyTemplateEntity> pageParam = new Page<>(pageNum,pageSize); List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); + String[] roles = sysUser.getRoleIds().split(","); + Integer isRole=0;//是否超管 + for (String role: roles) { + if (role.equals("1")){ + isRole=1; + break; + } + } + if (isRole.equals(1)){ + ids=null; + } List<ReplyTemplateEntity> list = iReplyTemplateService.selectConfigList(pageParam,pageSize,Name,ids); int num=iReplyTemplateService.countNum(Name,ids); return getDataTable(list,num); @@ -85,7 +96,6 @@ { return ResultData.error("模板名称不能为空"); } - entity.setId(null); entity.setDepartmentId(sysUser.getDepartmentId()); entity.setCreateUserId(sysUser.getUserId()+""); -- Gitblit v1.7.1