
3 changed files with 44 additions and 2 deletions
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.wms.apiadmin.aggregation; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.biz.func.sysstafforg.SysStaffOrgService; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/sysstafforg") |
||||
|
public class SysStaffOrgRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysStaffOrgService sysStaffOrgService; |
||||
|
|
||||
|
@GetMapping("/getOrgSidByPath") |
||||
|
@ResponseBody |
||||
|
@ApiOperation("根据用户组织全路径获取用户的分公司sid") |
||||
|
ResultBean<String> getOrgSidByPath(@RequestParam("orgPath") String orgPath){ |
||||
|
return sysStaffOrgService.getOrgSidByPath(orgPath); |
||||
|
}; |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.wms.biz.func.sysstafforg; |
||||
|
|
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.biz.func.sysroleauthorize.SysRoleAuthorize; |
||||
|
import com.yxt.wms.biz.func.sysroleauthorize.SysRoleAuthorizeDto; |
||||
|
import com.yxt.wms.biz.func.sysroleauthorize.SysRoleAuthorizeMapper; |
||||
|
import com.yxt.wms.feign.portal.sysroleauthorize.SysRoleAuthorizeFeign; |
||||
|
import com.yxt.wms.feign.portal.sysstafforg.SysStaffOrgFeign; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
@Service |
||||
|
public class SysStaffOrgService extends MybatisBaseService<SysRoleAuthorizeMapper, SysRoleAuthorize> { |
||||
|
|
||||
|
@Autowired |
||||
|
SysStaffOrgFeign sysStaffOrgFeign; |
||||
|
|
||||
|
public ResultBean<String> getOrgSidByPath(String orgPath) { |
||||
|
return sysStaffOrgFeign.getOrgSidByPath(orgPath); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue