package com.ssj.service.weixin.sales.service.impl;


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

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.weixin.sales.domain.LibQdSaleHis;
import com.ssj.dao.weixin.sales.dao.ILibQdSaleDao;
import com.ssj.dao.weixin.sales.dao.qdSalesQueryDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.weixin.sales.service.ILibQdSaleService;


@Service(version="1.0")
@Transactional
public class LibQdSaleServiceImpl extends BaseServiceImpl<LibQdSaleHis, String> implements ILibQdSaleService {

	@Autowired
	private ILibQdSaleDao dao;
	
	@Autowired
	private qdSalesQueryDao queryDao;
	
	@Override
	public PagingAndSortingRepository<LibQdSaleHis, String> getDao() {
		
		return dao;
	}

	@Override
	public Page<Map<String, Object>> findForPage(Map<String, Object> params, Pageable initPage) {
		
		return queryDao.findForPage(params,initPage);
	}

	@Override
	public List<Map<String, Object>> getForList(Map<String, Object> searchParams) {
		return queryDao.getForList(searchParams);
	}

	

}
