* @param
* @param
* @return Account ����10:50:17 ����
**/
public Account getFullAccount(String accountNo) {
Account account = accountModel.findByProperty("account", accountNo);
if (null != account) {
// ��ȡ�˺ŵ����е�Id
List<Integer> roleIdList = accountRoleModel.queryRoleIdList(account
.getId());
if (null != roleIdList && roleIdList.size() > 0) {
// ���ý�ɫId
account.setRoleIdList(roleIdList);
List<Role> roleList = roleModel.queryInIds(StringUtil
.combIntString(roleIdList));
for (Role role : roleList) {
Integer roleId = role.getId();
List<Integer> operationIdList = roleOperationModel
.queryOperationIdList(roleId);
List<Operation> operationList = operationModel
.queryInIds(StringUtil
.combIntString(operationIdList));
role.setOperationList(operationList);
role.setOperationIdList(roleIdList);
}
account.setRoleList(roleList);
}
}
return account;
}