修改随机推荐

This commit is contained in:
cyk
2023-07-04 10:28:30 +08:00
parent 5dda9d6c04
commit ab979671e8

View File

@@ -165,6 +165,8 @@ public class projectService {
for(int i=0;i<5;i++)
{
projectEntity projectEntity =projectEntityList1.get(random.nextInt(projectEntityList1.size()));
categoryEntity categoryEntity = categoryDao.retNum(projectEntity.getCategoryId());
projectEntity.setCategoryName(categoryEntity.getCategoryName());
projectEntityList.add(projectEntity);
}
return projectEntityList;