|  |  | 
 |  |  | 
 | 
 |  |  | import javax.annotation.Resource;
 | 
 |  |  | 
 | 
 |  |  | import com.moral.mapper.AccountMapper;
 | 
 |  |  | import com.moral.service.AccountService;
 | 
 |  |  | import org.apache.commons.collections.CollectionUtils;
 | 
 |  |  | import org.springframework.data.annotation.Transient;
 | 
 |  |  | import org.springframework.stereotype.Service;
 | 
 |  |  | 
 |  |  | public class OrganizationServiceImpl implements OrganizationService {
 | 
 |  |  | 
 | 
 |  |  |     @Resource
 | 
 |  |  |     private AccountMapper accountMapper;
 | 
 |  |  | 
 | 
 |  |  |     @Resource
 | 
 |  |  |     private OrganizationMapper organizationMapper;
 | 
 |  |  | 
 | 
 |  |  |     @Resource
 | 
 |  |  | 
 |  |  |         }
 | 
 |  |  |         return orgIds;
 | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  |     @Override
 | 
 |  |  |     public List<Organization> getOrganizationsByAreaName(Map<String, Object> parameters) {
 | 
 |  |  | 
 |  |  |         List<Organization> organizationList = organizationMapper.getOrganizationList(organizationName);
 | 
 |  |  |         return organizationList;
 | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  |     @Override
 | 
 |  |  |     public Organization getOrganizationByAccountId(Integer accountId) {
 | 
 |  |  |         Map<String, Object> organizationId = accountMapper.getOrganizationIdByAccountId(accountId);
 | 
 |  |  |         int orgId = (int) organizationId.get("organization_id");
 | 
 |  |  |         Organization org = getOrganizationById(orgId);
 | 
 |  |  |         return org;
 | 
 |  |  |     }
 | 
 |  |  | }
 |