Browse Source

--add demand.orgID;

zzy.zhiyuan.foxmail 8 years ago
parent
commit
0eb3c19bee

+ 8 - 0
src/main/java/com/ekexiu/portal/po/Demand.java

@ -22,6 +22,7 @@ public class Demand implements CreateTimeSupported {
22 22
	private String createTime;
23 23
	private String closeTime;
24 24
	private long orderKey;
25
	private String orgId;
25 26
	private EditProfessor professor;
26 27
	
27 28
	public EditProfessor getProfessor() {
@ -99,5 +100,12 @@ public class Demand implements CreateTimeSupported {
99 100
	public void setOrderKey(long orderKey) {
100 101
		this.orderKey = orderKey;
101 102
	}
103
	@Column(value=DE.id_32,nullable=true)
104
	public String getOrgId() {
105
		return orgId;
106
	}
107
	public void setOrgId(String orgId) {
108
		this.orgId = orgId;
109
	}
102 110
	
103 111
}

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

@ -244,6 +244,9 @@ public class ProfessorService {
244 244
				professor.setOrgId(this.orgService.createOrganization(con, orgName));
245 245
			}
246 246
		}
247
		if(professor.getOrgAuth() == null){
248
			professor.setOrgAuth("0");
249
		}
247 250
		User user = this.userDao.query(con, professor.getId());
248 251
		if(user != null){
249 252
			professor.setPhone(user.getMobilePhone());