瀏覽代碼

增加 卡信息 数据权限

shilinxiao 4 年之前
父節點
當前提交
7bf1d20a68
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/java/cn/com/ota/web/controller/AgentCardInfoController.java

+ 4 - 1
src/main/java/cn/com/ota/web/controller/AgentCardInfoController.java

@@ -55,7 +55,10 @@ public class AgentCardInfoController extends BaseController {
         DataResult dataRet = new DataResult();
         try {
             List<SearchFilter> searchFilters = Lists.newArrayList();
-            searchFilters.add(new SearchFilter("modifyBy", SearchFilter.Operator.EQ, getLoginUser().getId()));
+            Account account = getLoginUser();
+            if (account.getSuperman() != 0) {//不是超管 则增加 数据权限 筛选
+                searchFilters.add(new SearchFilter("modifyBy", SearchFilter.Operator.EQ, account.getId()));
+            }
             Specification<AgentCardInfo> specification = DynamicSpecifications.bySearchFilter(request, AgentCardInfo.class, null, searchFilters);
             List<AgentCardInfo> dictDatas = getService().findByCondition(specification, webPage);
             List<AgentCardInfoVo> lstVo = Lists.newArrayList();