|
|
@ -15,6 +15,7 @@ import org.springframework.transaction.annotation.Propagation; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
@ -72,15 +73,30 @@ public class CompeteVedioService implements ICompeteVedioService{ |
|
|
|
@Override |
|
|
|
public List<VideoProjectVo.GetTwoProject> selectTwoProject(QueryDto<VideoDto.GetTwoProject> params) { |
|
|
|
CompeteProjectExample competeCompanyExample=new CompeteProjectExample(); |
|
|
|
//competeCompanyExample.createCriteria().andCompeteTimeIdEqualTo(params.getParam().getTeamId()).andLevelEqualTo();
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
competeCompanyExample.createCriteria().andCompeteTimeIdEqualTo(params.getParam().getTeamId()).andLevelEqualTo((byte) 2); |
|
|
|
List<CompeteProject> list=competeProjectMapper.selectByExample(competeCompanyExample); |
|
|
|
List<VideoProjectVo.GetTwoProject> list1=new ArrayList<>(); |
|
|
|
list.forEach(mes->{ |
|
|
|
VideoProjectVo.GetTwoProject getTwoProject=new VideoProjectVo.GetTwoProject(); |
|
|
|
getTwoProject.setProjectId(mes.getId()); |
|
|
|
getTwoProject.setProjectName(mes.getName()); |
|
|
|
list1.add(getTwoProject); |
|
|
|
}); |
|
|
|
return list1; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<VideoProjectVo.GetAllCompany> selectAllCompany(QueryDto<VideoDto.GetAllCompany> params) { |
|
|
|
|
|
|
|
return null; |
|
|
|
CompeteCompanyExample competeCompanyExample=new CompeteCompanyExample(); |
|
|
|
competeCompanyExample.createCriteria().andCompeteTimeIdEqualTo(params.getParam().getTeamId()); |
|
|
|
List<CompeteCompany> list= competeCompanyMapper.selectByExample(competeCompanyExample); |
|
|
|
List<VideoProjectVo.GetAllCompany> list1=new ArrayList<>(); |
|
|
|
list.forEach(mes->{ |
|
|
|
VideoProjectVo.GetAllCompany getAllCompany=new VideoProjectVo.GetAllCompany(); |
|
|
|
getAllCompany.setCompanyId(mes.getId()); |
|
|
|
getAllCompany.setCompanyName(mes.getName()); |
|
|
|
list1.add(getAllCompany); |
|
|
|
}); |
|
|
|
return list1; |
|
|
|
} |
|
|
|
} |
|
|
|