Browse Source

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

zzy.zhiyuan.foxmail 8 years ago
parent
commit
b933fc34dc

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

15
public class ProfessorInfo extends Professor{
15
public class ProfessorInfo extends Professor{
16
	
16
	
17
	private String orgName;
17
	private String orgName;
18
	private Integer hasHeadImage;
18
	/**
19
	/**
19
	 * 研究方向
20
	 * 研究方向
20
	 */
21
	 */
45
	 */
46
	 */
46
	private List<Project> projects;
47
	private List<Project> projects;
47
	
48
	
48
	
49
	public String getOrgName() {
49
	public String getOrgName() {
50
		return orgName;
50
		return orgName;
51
	}
51
	}
52
	public void setOrgName(String orgName) {
52
	public void setOrgName(String orgName) {
53
		this.orgName = orgName;
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
	public List<ResearchAreaLog> getResearchAreaLogs() {
61
	public List<ResearchAreaLog> getResearchAreaLogs() {
56
		return researchAreaLogs;
62
		return researchAreaLogs;
57
	}
63
	}

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

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