|
@@ -1,6 +1,8 @@
|
|
|
package com.ym.mec.web.controller;
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
|
|
+import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dto.TenantPreJoinDto;
|
|
import com.ym.mec.biz.dal.dto.TenantPreJoinDto;
|
|
|
import com.ym.mec.biz.dal.entity.TenantPreJoin;
|
|
import com.ym.mec.biz.dal.entity.TenantPreJoin;
|
|
|
import com.ym.mec.biz.dal.vo.TenantPreJoinVo;
|
|
import com.ym.mec.biz.dal.vo.TenantPreJoinVo;
|
|
@@ -35,11 +37,18 @@ public class TenantPreJoinController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@Resource
|
|
@Resource
|
|
|
private TenantPreJoinService tenantPreJoinService;
|
|
private TenantPreJoinService tenantPreJoinService;
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
|
|
|
|
|
@ApiOperation("分页查询")
|
|
@ApiOperation("分页查询")
|
|
|
@PostMapping("/queryPage")
|
|
@PostMapping("/queryPage")
|
|
|
@PreAuthorize("@pcs.hasPermissions('tenantPreJoin/queryPage')")
|
|
@PreAuthorize("@pcs.hasPermissions('tenantPreJoin/queryPage')")
|
|
|
public HttpResponseResult<PageInfo<TenantPreJoinVo>> queryPage(@RequestBody Map<String, Object> param) {
|
|
public HttpResponseResult<PageInfo<TenantPreJoinVo>> queryPage(@RequestBody Map<String, Object> param) {
|
|
|
|
|
+ //如果不是超管,那么只能看到推荐人自己的机构
|
|
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
|
+ if(!sysUser.getIsSuperAdmin()){
|
|
|
|
|
+ param.put("recommender",sysUser.getId());
|
|
|
|
|
+ }
|
|
|
return succeed(tenantPreJoinService.queryPage(param));
|
|
return succeed(tenantPreJoinService.queryPage(param));
|
|
|
}
|
|
}
|
|
|
|
|
|