处理问题

This commit is contained in:
wanggeng 2022-04-07 09:32:38 +08:00
parent 1115c76216
commit ee017c6adc
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ public class DepartmentUserServiceImpl extends DefaultBaseService implements IDe
break; break;
} }
} }
if (isExist) { if (!isExist) {
params.put("userId", saveUserId); params.put("userId", saveUserId);
params.put("departmentId", departmentId); params.put("departmentId", departmentId);
departmentUserDao.save(params); departmentUserDao.save(params);

View File

@ -65,7 +65,7 @@ public class RoleUserServiceImpl extends DefaultBaseService implements IRoleUser
break; break;
} }
} }
if (isExist) { if (!isExist) {
params.put("roleId", roleId); params.put("roleId", roleId);
params.put("userId", saveUserId); params.put("userId", saveUserId);
roleUserDao.save(params); roleUserDao.save(params);