|
|
@@ -1,6 +1,7 @@
|
|
|
package com.usoftchina.saas.account.service.impl;
|
|
|
|
|
|
import com.usoftchina.saas.account.cache.AccountCache;
|
|
|
+import com.usoftchina.saas.account.dto.AccountRoleDTO;
|
|
|
import com.usoftchina.saas.account.mapper.AccountCompanyMapper;
|
|
|
import com.usoftchina.saas.account.mapper.AccountMapper;
|
|
|
import com.usoftchina.saas.account.mapper.AccountRoleMapper;
|
|
|
@@ -113,6 +114,19 @@ public class AccountServiceImpl implements AccountService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void bindRoles(Long accountId, String roleIds) {
|
|
|
+ String[] array = roleIds.split(",");
|
|
|
+ for (int i = 0; i < array.length; i++){
|
|
|
+ bindRole(accountId, Long.parseLong(array[i]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<AccountRoleDTO> selectAccountRole(){
|
|
|
+ return accountRoleMapper.selectAccountRole();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void unbindRole(Long accountId, Long roleId) {
|
|
|
accountRoleMapper.delete(accountId, roleId);
|