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

import com.ssj.bean.weixin.problem.domain.Experience;
import com.ssj.dao.weixin.problem.dao.ExperienceDao;
import com.ssj.dao.weixin.problem.dao.ProblemQueryDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.weixin.problem.service.ExperienceService;
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 org.springframework.transaction.annotation.Transactional;

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


@Service
@Transactional
public class ExperienceServiceImpl extends BaseServiceImpl<Experience, String> implements ExperienceService{
	@Autowired
	private ExperienceDao  experienceDao;
	@Autowired
	private ProblemQueryDao  problemQueryDao;
	@Override
	public Page<Map<String, Object>> findForExpPage(
			Map<String, Object> searchParams, Pageable pageable) {
		return problemQueryDao.findForExpPage(searchParams, pageable);
	}

	@Override
	public PagingAndSortingRepository<Experience, String> getDao() {
		return  experienceDao;
	}

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

}
