Browse Source

Merge branch 'master' of http://121.42.53.174:3000/bulomakaka/ekexiu.com.portal.git

happy 8 years ago
parent
commit
a69e62919e

+ 5 - 3
src/main/java/com/ekexiu/portal/dao/WatchDao.java

4
import java.sql.SQLException;
4
import java.sql.SQLException;
5
import java.util.List;
5
import java.util.List;
6

6

7
import org.jfw.apt.annotation.Nullable;
7
import org.jfw.apt.orm.annotation.dao.DAO;
8
import org.jfw.apt.orm.annotation.dao.DAO;
8
import org.jfw.apt.orm.annotation.dao.method.From;
9
import org.jfw.apt.orm.annotation.dao.method.From;
9
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
10
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
10
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
11
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
11
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
12
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
12
import org.jfw.apt.orm.annotation.dao.method.operator.SelectList;
13
import org.jfw.apt.orm.annotation.dao.method.operator.SelectList;
14
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
13

15

14
import com.ekexiu.portal.po.Watch;
16
import com.ekexiu.portal.po.Watch;
15

17

30
	@From(Watch.class)
32
	@From(Watch.class)
31
	public abstract int deleteWatch(Connection con, String watchObject) throws SQLException;
33
	public abstract int deleteWatch(Connection con, String watchObject) throws SQLException;
32
	
34
	
33
//	@Nullable
34
//	@SelectOne
35
//	public abstract Watch queryOne(Connection con, String professorId, String watchObject) throws SQLException;
35
	@Nullable
36
	@SelectOne
37
	public abstract Watch queryOne(Connection con, String professorId, String watchObject) throws SQLException;
36
	
38
	
37
	@SelectList
39
	@SelectList
38
	@OrderBy(" ORDER BY CREATE_TIME DESC ")
40
	@OrderBy(" ORDER BY CREATE_TIME DESC ")

+ 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
		

+ 6 - 0
src/main/java/com/ekexiu/portal/service/WatchService.java

76
		this.watchDao.delete(con, professorId, watchObject);
76
		this.watchDao.delete(con, professorId, watchObject);
77
	}
77
	}
78
	
78
	
79
	@Get
80
	@Path("/hasWatch")
81
	public Watch queryOne(@JdbcConn Connection con, String professorId, String watchObject) throws SQLException {
82
		return this.watchDao.queryOne(con, professorId, watchObject);
83
	}
84
	
79
	@Get
85
	@Get
80
	@Path("/qaPro")
86
	@Path("/qaPro")
81
	public List<Watch> queryPro(@JdbcConn Connection con, String professorId, Integer watchType) throws SQLException{
87
	public List<Watch> queryPro(@JdbcConn Connection con, String professorId, Integer watchType) throws SQLException{