Browse Source

专家个人信息接口返回值添加专家发布的所有资源。

zzy.zhiyuan.foxmail 8 years ago
parent
commit
b933fc34dc

+ 7 - 1
src/main/java/com/ekexiu/portal/pojo/ProfessorInfo.java

@ -15,6 +15,7 @@ import com.ekexiu.portal.po.ResearchAreaLog;
15 15
public class ProfessorInfo extends Professor{
16 16
	
17 17
	private String orgName;
18
	private Integer hasHeadImage;
18 19
	/**
19 20
	 * 研究方向
20 21
	 */
@ -45,13 +46,18 @@ public class ProfessorInfo extends Professor{
45 46
	 */
46 47
	private List<Project> projects;
47 48
	
48
	
49 49
	public String getOrgName() {
50 50
		return orgName;
51 51
	}
52 52
	public void setOrgName(String orgName) {
53 53
		this.orgName = orgName;
54 54
	}
55
	public Integer getHasHeadImage() {
56
		return hasHeadImage;
57
	}
58
	public void setHasHeadImage(Integer hasHeadImage) {
59
		this.hasHeadImage = hasHeadImage;
60
	}
55 61
	public List<ResearchAreaLog> getResearchAreaLogs() {
56 62
		return researchAreaLogs;
57 63
	}

+ 2 - 0
src/main/java/com/ekexiu/portal/service/ProfessorService.java

@ -404,6 +404,7 @@ public class ProfessorService {
404 404
		ProfessorInfo info = this.professorDao.queryInfo(con, id);
405 405
		if(info!=null){
406 406
			info.setOrgName(this.orgDao.query(con, info.getOrgId()).getName());
407
			info.setHasHeadImage(this.imageService.hasProfessorImage(id));
407 408
			info.setEdus(this.professorEduBgDao.query(con, id));
408 409
			info.setHonors(this.honorDao.query(con, id));
409 410
			info.setJobs(this.partTimeJobDao.query(con, id));
@ -412,6 +413,7 @@ public class ProfessorService {
412 413
			info.setProjects(this.projectDao.query(con, id));
413 414
			info.setResearchAreaLogs(this.researchAreaLogDao.query(con, id));
414 415
			info.setResearchAreas(this.researchAreaDao.query(con, id));
416
			info.setResources(this.resourceDao.queryPro(con, id));
415 417
		}
416 418
		return info;
417 419