|
@@ -547,7 +547,7 @@ public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person>
|
|
throw new IllegalArgumentException("不能选择自己作为直接上级");
|
|
throw new IllegalArgumentException("不能选择自己作为直接上级");
|
|
}
|
|
}
|
|
// 不能选择直接上级是自己的员工作为上级
|
|
// 不能选择直接上级是自己的员工作为上级
|
|
- List<Person> people = queryByLeader(leaderId);
|
|
|
|
|
|
+ List<Person> people = queryByLeader(Long.valueOf(personId));
|
|
people.forEach(tmpPerson -> {
|
|
people.forEach(tmpPerson -> {
|
|
String tmpPersonId = tmpPerson.getId();
|
|
String tmpPersonId = tmpPerson.getId();
|
|
if (tmpPersonId.equals(leaderId.toString())) {
|
|
if (tmpPersonId.equals(leaderId.toString())) {
|