修改随机推荐
This commit is contained in:
1 parent
5dda9d6c04
commit
ab979671e8
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user