fix: 获取第二部门时的错误
This commit is contained in:
parent
c2c1ff8063
commit
249565ef6d
|
|
@ -131,7 +131,8 @@ public class ByteDeptApiKeyServiceImpl implements IByteDeptApiKeyService {
|
||||||
}
|
}
|
||||||
if (parts.length == 2) {
|
if (parts.length == 2) {
|
||||||
try {
|
try {
|
||||||
return Long.parseLong(parts[1].trim());
|
// return Long.parseLong(parts[1].trim());
|
||||||
|
return userDept.getDeptId();
|
||||||
} catch (NumberFormatException ignored) {
|
} catch (NumberFormatException ignored) {
|
||||||
return userDept.getDeptId();
|
return userDept.getDeptId();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue