package com.cloudcross.ssp.back.service.impl;

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

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloudcross.ssp.back.model.OperatorReport;
import com.cloudcross.ssp.back.service.IOperatorReportService;
import com.cloudcross.ssp.base.dao.GenericIBatisDao;
import com.cloudcross.ssp.common.utils.Pager;




@Service
public class OperatorReportService implements IOperatorReportService {
	@Autowired
	private GenericIBatisDao iBatisDao;
	
	@Override
	public int findCountForDeliverEffectAnalysis(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.findCountForDeliverEffectAnalysis", paramMap);
	}
	
	@Override
	public List<OperatorReport> findDeliverEffectAnalysis(Map<String, Object> paramMap, Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findDeliverEffectAnalysis", paramMap);
	}
	
	@Override
	public int countBySize(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.countBySize", paramMap);
	}
	
	@Override
	public List<OperatorReport> findBySize(Map<String, Object> paramMap, Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findBySize", paramMap);
	}

	@Override
	public int countByPosition(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.countByPosition", paramMap);
	}
	
	@Override
	public List<OperatorReport> findByPosition(Map<String, Object> paramMap, Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findByPosition", paramMap);
	}
	@Override
	public int countBySystem(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.countBySystem", paramMap);
	}
	
	@Override
	public List<OperatorReport> findBySystem(Map<String, Object> paramMap, Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findBySystem", paramMap);
	}
	
	@Override
	public int countByPlace(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.countByPlace", paramMap);
	}
	
	@Override
	public List<OperatorReport> findByPlace(Map<String, Object> paramMap, Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findByPlace", paramMap);
	}

	@Override
	public OperatorReport findById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int countByParams(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<OperatorReport> findByParams(Map<String, Object> paramMap,
			Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean add(OperatorReport t) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean edit(OperatorReport 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<OperatorReport> findDeliverEffectAnalysis(
			Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findDeliverEffectAnalysis1", paramMap);
	}

	@Override
	public List<OperatorReport> findBySize(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findBySize1", paramMap);
	}

	@Override
	public List<OperatorReport> findByPosition(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findByPosition1", paramMap);
	}

	@Override
	public List<OperatorReport> findBySystem(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findBySystem1", paramMap);
	}

	@Override
	public List<OperatorReport> findByDevice(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findByDevice", paramMap);
	}


	@Override
	public List<OperatorReport> findByPlace(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findByPlace1", paramMap);
	}

	@Override
	public OperatorReport findSum(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.findSum", paramMap);
	}

	@Override
	public int countByAllAreal(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.countByAllAreal", paramMap);
	}

	@Override
	public List<OperatorReport> findByAllAreal(Map<String, Object> paramMap,
			Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findByAllAreal", paramMap);
	}

	@Override
	public List<OperatorReport> findByAreal(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findByAreal", paramMap);
	}


	@Override
	public List<OperatorReport> findAllArea(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findAllArea", paramMap);
	}

	@Override
	public int countByApmac(Map<String, Object> paramMap) {
		return iBatisDao.get("back.operatorReportSqlMapper.countByApmac", paramMap);
	}

	@Override
	public List<OperatorReport> findByApmac(Map<String, Object> paramMap,
			Pager pager) {
		paramMap.put("pager", pager);
		return iBatisDao.getList("back.operatorReportSqlMapper.findByApmac", paramMap);
	}

	@Override
	public List<OperatorReport> findByApmac(Map<String, Object> paramMap) {
		return iBatisDao.getList("back.operatorReportSqlMapper.findByApmac1", paramMap);
	}
	
	

	
	
}
