|
@@ -6,14 +6,12 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fdkankan.manage.common.PageInfo;
|
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
|
import com.fdkankan.manage.entity.JyUser;
|
|
|
+import com.fdkankan.manage.entity.SysUser;
|
|
|
+import com.fdkankan.manage.service.*;
|
|
|
import com.fdkankan.manage.vo.JyUserPlatform;
|
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
|
import com.fdkankan.manage.mapper.IJyUserPlatformMapper;
|
|
|
-import com.fdkankan.manage.service.IExcelService;
|
|
|
-import com.fdkankan.manage.service.IJyPlatformService;
|
|
|
-import com.fdkankan.manage.service.IJyUserPlatformService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.fdkankan.manage.service.IJyUserService;
|
|
|
import com.fdkankan.manage.vo.request.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -40,6 +38,8 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
IJyPlatformService platformService;
|
|
|
@Autowired
|
|
|
IJyUserService jyUserService;
|
|
|
+ @Autowired
|
|
|
+ ISysUserService sysUserService;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -83,7 +83,13 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
|
|
|
@Override
|
|
|
public Object pageList(JyUserPlatformParam param) {
|
|
|
- param.setPlatformId(getLoginPlatformId());
|
|
|
+ SysUser byId = sysUserService.getById(Long.valueOf(StpUtil.getLoginId().toString()));
|
|
|
+ if(byId.getRoleId() != 1L || byId.getRoleId() !=45L){
|
|
|
+ param.setPlatformId(getLoginPlatformId());
|
|
|
+ }
|
|
|
+ if(byId.getRoleId() == 45L){
|
|
|
+ param.setIsJm(1);
|
|
|
+ }
|
|
|
Page<JyUserPlatformVo> page = this.getBaseMapper().pageList(new Page<>(param.getPageNum(),param.getPageSize()),param);
|
|
|
return PageInfo.PageInfo(page);
|
|
|
}
|