/*
 * 
 */
package com.bankaudit.service;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import org.hibernate.Session;
import org.hibernate.query.Query;
import org.jboss.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bankaudit.dao.MaintZoneMappingDao;
import com.bankaudit.dto.ChecklistDto; 
import com.bankaudit.dto.DataTableResponse;
import com.bankaudit.dto.MaintZoneMappingDto;
import com.bankaudit.model.MaintZoneMapping;
import com.bankaudit.process.model.AuditDocumentDetails;
import com.bankaudit.process.model.AuditObservation;
import com.bankaudit.process.model.ChecklistOfflineInspection;
import com.bankaudit.rest.process.dao.DashboardDaoImpl;

/**
 * The Interface {@link MaintZoneMappingServiceImpl} define the methods
 * that can be exposed to controller layer in order to implements rest
 * end-points and define the business logic.
 *
 * @author amit.patel
 * @version 1.0
 */

@Service("maintZoneMappingService")
@Transactional("transactionManager")
public class MaintZoneMappingServiceImpl implements MaintZoneMappingService {

	static final Logger logger = Logger.getLogger(MaintZoneMappingServiceImpl.class);
	
	@Autowired
	MaintZoneMappingDao  maintZoneMappingDao; 
	
	public List<MaintZoneMappingDto> getZoneByLegalEntityCode(Integer legalEntityCode, String userId){		
		 return maintZoneMappingDao.getZoneByLegalEntityCode(legalEntityCode, userId);
	}
	
	public List<MaintZoneMappingDto> getRegionalOfficeOfAllZones(Integer legalEntityCode, String userId){
		return maintZoneMappingDao.getRegionalOfficeOfAllZones(legalEntityCode, userId);
	}
	
}
