修改用户项目展示
This commit is contained in:
@@ -179,6 +179,14 @@ public class projectService {
|
||||
}
|
||||
public String retProjectByUserId(int id){
|
||||
List<projectEntity> projectEntityList = projectDao.retProjectByUserId(id);
|
||||
|
||||
for(int i =0;i<projectEntityList.size();i++)
|
||||
{
|
||||
projectEntity projectEntity = projectEntityList.get(i);
|
||||
categoryEntity categoryEntity = categoryDao.retNum(projectEntity.getCategoryId());
|
||||
projectEntity.setCategoryName(categoryEntity.getCategoryName());
|
||||
|
||||
}
|
||||
return JSONObject.toJSONString(projectEntityList);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user