|
@@ -205,9 +205,9 @@ public class ClientAccountController extends SimpleController{
|
|
|
account.setDescription(ca.getCompanyName());
|
|
|
accountService.addAccount(account);
|
|
|
Account account2 = accountService.querySingleAccount(account.getAccountName());
|
|
|
- RoleAccount ra = new RoleAccount();//给客户账号分配普通用户角色
|
|
|
+ RoleAccount ra = new RoleAccount();//给客户账号分配媒体角色 角色ID=9
|
|
|
ra.setAccountId(account2.getId());
|
|
|
- ra.setRoleId(1);
|
|
|
+ ra.setRoleId(9);
|
|
|
roleService.addAccRole(ra);
|
|
|
|
|
|
o.setAdminId(new Long(account2.getId()));
|
|
@@ -243,9 +243,9 @@ public class ClientAccountController extends SimpleController{
|
|
|
account.setDescription(ca.getCompanyName());
|
|
|
accountService.addAccount(account);
|
|
|
Account account2 = accountService.querySingleAccount(account.getAccountName());
|
|
|
- RoleAccount ra = new RoleAccount();//给客户账号分配普通用户角色
|
|
|
+ RoleAccount ra = new RoleAccount();//给客户账号分配代理商角色 角色ID=7
|
|
|
ra.setAccountId(account2.getId());
|
|
|
- ra.setRoleId(1);
|
|
|
+ ra.setRoleId(7);
|
|
|
roleService.addAccRole(ra);
|
|
|
|
|
|
advAgent.setAdminId(new Long(account2.getId()));
|