修改用户项目展示

This commit is contained in:
cyk
2023-07-05 17:04:35 +08:00
parent c955633d88
commit 1ad40b6bb0

View File

@@ -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);
}
}