package com.softwarebr.nunu.service.hall.impl;

import com.softwarebr.nunu.entity.hall.Team;
import com.softwarebr.nunu.dao.hall.TeamDao;
import com.softwarebr.nunu.service.hall.TeamService;
import com.brframework.commondb.core.AbstractEntityService;
import com.brframework.commondb.core.CommonRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @date 2020-02-25 12:11:26
 * @author lilin
 */

@Slf4j
@Service
public class TeamServiceImpl extends AbstractEntityService<Team, Long, Object> implements TeamService {

	@Autowired
	private TeamDao teamDao;

	@Override
	public CommonRepository<Long, Team> getRepository() {
		return teamDao;
	}

	@Override
	public List<Team> findTeamByInvestId(Long investId){

		return teamDao.findByInvestId(investId);
	}


}