package com.ssj.service.sys.opentest;

import com.ssj.bean.sys.opentest.OpenTestUser;
import com.ssj.dao.sys.opentest.OpenTestUserDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Mount Liu
 * @date 2020/2/11
 */
@Service
@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);
    }


}
