本文整理了Java中com.geekq.guns.api.film.vo.YearVO
类的一些代码示例,展示了YearVO
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YearVO
类的具体详情如下:
包路径:com.geekq.guns.api.film.vo.YearVO
类名称:YearVO
暂无
代码示例来源:origin: qiurunze123/GEEKQ-CM
@Override
public List<YearVO> getYears() {
List<YearVO> years = new ArrayList<>();
// 查询实体对象 - MoocCatDictT
List<MoocYearDictT> moocYears = moocYearDictTMapper.selectList(null);
// 将实体对象转换为业务对象 - CatVO
for(MoocYearDictT moocYearDictT : moocYears){
YearVO yearVO = new YearVO();
yearVO.setYearId(moocYearDictT.getUuid()+"");
yearVO.setYearName(moocYearDictT.getShowName());
years.add(yearVO);
}
return years;
}
代码示例来源:origin: qiurunze123/GEEKQ-CM
YearVO yearVO = null;
for(YearVO year : years){
if(year.getYearId().equals("99")){
yearVO = year;
continue;
if(year.getYearId().equals(catId)){
flag = true;
year.setActive(true);
}else{
year.setActive(false);
yearVO.setActive(true);
yearResult.add(yearVO);
}else{
yearVO.setActive(false);
yearResult.add(yearVO);
内容来源于网络,如有侵权,请联系作者删除!