package com.ssj.service.sys.opentest;

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.sys.give.GiveRecord;
import com.ssj.bean.sys.opentest.OpenTestUser;
import com.ssj.dao.sys.give.GiveRecordDao;
import com.ssj.dao.sys.opentest.OpenTestUserDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.framework.core.persistence.DynamicSpecifications;
import com.ssj.framework.core.persistence.SearchFilter;
import com.ssj.framework.core.util.StringUtil;
import com.ssj.service.sys.give.GiveRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

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

/**
 * @author Mount Liu
 * @date 2020/2/11
 */
@Service(version = "1.0")
@Transactional
public class OpenTestUserServiceImpl extends BaseServiceImpl<OpenTestUser, String> implements OpenTestUserService {

    @Autowired
    private OpenTestUserDao dao;

    @Override
    public PagingAndSortingRepository<OpenTestUser, String> getDao() {
        return dao;
    }

    @Override
    public OpenTestUser findByUserId(String userId) {
        return dao.findByUserId(userId);
    }


}
