package com.cloudcross.ssp.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloudcross.ssp.base.dao.GenericIBatisDao;
import com.cloudcross.ssp.common.utils.Pager;
import com.cloudcross.ssp.model.DeliverAnalysis;
import com.cloudcross.ssp.model.OperatorReport;
import com.cloudcross.ssp.model.RptZoneHour;
import com.cloudcross.ssp.service.IRptZoneHourService;

@Service
public class RptZoneHourService implements IRptZoneHourService{
	private static final Logger LOG = Logger.getLogger(RptZoneHourService.class);
	@Autowired
	private GenericIBatisDao myBatisDao;
	@Override
	public RptZoneHour findById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public int countByParams(Map<String, Object> paramMap) {
		return myBatisDao.get("rptZoneHourSqlMapper.countByParams", paramMap);
	}
	@Override
	public List<DeliverAnalysis> findByParams1(Map<String, Object> paramMap,
			Pager pager) {
		paramMap.put("pager", pager);
		return myBatisDao.getList("rptZoneHourSqlMapper.findByParams1", paramMap);
	}
	@Override
	public boolean add(RptZoneHour t) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean edit(RptZoneHour t) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean updateStatus(List<Long> idList, int status) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<RptZoneHour> findEveryHourData(Map<String, Object> paramMap) {
		return myBatisDao.getList("rptZoneHourSqlMapper.findEveryHourDataOperator", paramMap);
	}
	
	@Override
	public List<RptZoneHour> findEveryHourDataBack(Map<String, Object> paramMap) {
		return myBatisDao.getList("rptZoneHourSqlMapper.findEveryHourDataBack", paramMap);
	}
	@Override
	public List<RptZoneHour> findByParams(Map<String, Object> paramMap,
			Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public DeliverAnalysis findSumOperator(Map<String, Object> paramMap) {
		return myBatisDao.get("rptZoneHourSqlMapper.findSum", paramMap);
	}
	@Override
	public List<DeliverAnalysis> findByParams1(Map<String, Object> paramMap) {
		return myBatisDao.getList("rptZoneHourSqlMapper.findByParams2", paramMap);
	}
	@Override
	public int countByParamsBack(Map<String, Object> paramMap) {
		return myBatisDao.get("rptZoneHourSqlMapper.countByParamsBack", paramMap);
	}
	@Override
	public List<OperatorReport> findByParamsBack(Map<String, Object> paramMap,
			Pager pager) {
		paramMap.put("pager", pager);
		return myBatisDao.getList("rptZoneHourSqlMapper.findByParamsBack", paramMap);
	}
	@Override
	public List<OperatorReport> findByParamsBack(Map<String, Object> paramMap) {
		return myBatisDao.getList("rptZoneHourSqlMapper.findByParamsBack1", paramMap);
	}
	@Override
	public OperatorReport findSumBack(Map<String, Object> paramMap) {
		return myBatisDao.get("rptZoneHourSqlMapper.findSumBack", paramMap);
	}
}
