package com.ssj.service.sys.fx.service.impl;

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

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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.stereotype.Service;

import com.ssj.bean.sys.fx.domain.MerchantPlatOrder;
import com.ssj.dao.sys.fx.dao.FxQueryDao;
import com.ssj.dao.sys.fx.dao.MerchantPlatOrderDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.fx.service.MerchantPlatOrderService;


@Service
public class MerchantPlatOrderServiceImpl extends BaseServiceImpl<MerchantPlatOrder, String> implements MerchantPlatOrderService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	private MerchantPlatOrderDao dao;
	
    @Autowired
    private FxQueryDao queryDao;
	
    @Override
    public PagingAndSortingRepository<MerchantPlatOrder, String> getDao() {
        return dao;
    }

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

	@Override
	public List<MerchantPlatOrder> findMerchantPlatOrderAll(String merchantId) {
		return dao.findMerchantPlatOrderAll(merchantId);
	}

    

}


