Commit 4bd4b77c by zhangkb

调用远程auth服务orgid类型改成long

parent 58d94a9b
......@@ -10,7 +10,7 @@ import com.keymobile.tagmanager.model.authService.Org;
@FeignClient(name = "authService")
public interface AuthServiceClient {
@GetMapping(value = "/orgs/{orgId}")
public Org getOrgs(@PathVariable("orgId") String orgId);
public Org getOrgs(@PathVariable("orgId") Long orgId);
@GetMapping(value = "/orgs/findByFullName")
public Org findByFullName(@RequestParam("orgFullName") String orgFullName);
......
......@@ -194,7 +194,7 @@ public class TagService {
//根据用户所属机构id获取对应的公司机构id
public String getCompanyOrgIdByUserOrgId(String dept) throws TagNotExistException{
//根据用户机构id获取机构信息
Org org = authService.getOrgs(dept);
Org org = authService.getOrgs(Long.valueOf(dept));
if(org==null) {
throw new TagNotExistException("get org by id error;");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment