|
@ -302,6 +302,18 @@ public class ProfessorService {
|
302
|
302
|
this.professorDao.update(con, professor);
|
303
|
303
|
}
|
304
|
304
|
|
|
305
|
@Post
|
|
306
|
@Path("/updatePro")
|
|
307
|
public void updatePro(@JdbcConn(true) Connection con,EditProfessor professor)throws SQLException, IOException{
|
|
308
|
if(professor.getOrgName()!=null)
|
|
309
|
if(null != this.orgDao.queryByName(con, professor.getOrgName())){
|
|
310
|
professor.setOrgId(this.orgDao.queryByName(con, professor.getOrgName()));
|
|
311
|
} else {
|
|
312
|
professor.setOrgId(this.orgService.createOrganization(con, professor.getOrgName()));
|
|
313
|
}
|
|
314
|
this.professorDao.update(con, professor);
|
|
315
|
}
|
|
316
|
|
305
|
317
|
@Get
|
306
|
318
|
@Path("/queryInvite")
|
307
|
319
|
public List<EditProfessor> queryInvite(@JdbcConn Connection con, String id) throws SQLException{
|