|
@@ -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();
|