diff --git a/src/main/java/club/joylink/rtss/services/OrgUserService.java b/src/main/java/club/joylink/rtss/services/OrgUserService.java index e8eb03f5c..60decbca0 100644 --- a/src/main/java/club/joylink/rtss/services/OrgUserService.java +++ b/src/main/java/club/joylink/rtss/services/OrgUserService.java @@ -379,7 +379,7 @@ public class OrgUserService implements IOrgUserService { orgUserDAO.insertSelective(userDepartRelVO.toDB()); } else { OrgUserExample e = new OrgUserExample(); - e.createCriteria().andUserIdEqualTo(sysUser.getId()); + e.createCriteria().andUserIdEqualTo(userVO.getId()); List orgUsers = orgUserDAO.selectByExample(e); BusinessExceptionAssertEnum.INVALID_OPERATION.assertCollectionNotEmpty(orgUsers, sysUser.getAccount() + "账号重复"); OrgExample oe = new OrgExample(); diff --git a/src/main/resources/mybatis/mapper/OrgUserDAO.xml b/src/main/resources/mybatis/mapper/OrgUserDAO.xml index ebffb30bc..0e80bdec4 100644 --- a/src/main/resources/mybatis/mapper/OrgUserDAO.xml +++ b/src/main/resources/mybatis/mapper/OrgUserDAO.xml @@ -237,7 +237,7 @@ - +