|
@ -357,7 +357,7 @@ public class ProfessorService {
|
357
|
357
|
Professor p = this.professorDao.query(con, id);
|
358
|
358
|
if (p != null) {
|
359
|
359
|
String oid = this.orgService.createOrganization(con, name);
|
360
|
|
String old = p.getOrgId();
|
|
360
|
String old = p.getOrganization().getId();
|
361
|
361
|
if (!oid.equals(old)) {
|
362
|
362
|
this.professorDao.updateOrg(con, oid, id);
|
363
|
363
|
if (old != null) {
|
|
@ -382,7 +382,7 @@ public class ProfessorService {
|
382
|
382
|
}
|
383
|
383
|
Professor op = this.professorDao.query(con, professor.getId());
|
384
|
384
|
|
385
|
|
String old_oid = op.getOrgId();
|
|
385
|
String old_oid = op.getOrganization().getId();
|
386
|
386
|
String new_oid = professor.getOrgId();
|
387
|
387
|
|
388
|
388
|
if (this.professorDao.update(con, professor) > 0) {
|
|
@ -410,7 +410,7 @@ public class ProfessorService {
|
410
|
410
|
}
|
411
|
411
|
Professor op = this.professorDao.query(con, professor.getId());
|
412
|
412
|
|
413
|
|
String old_oid = op.getOrgId();
|
|
413
|
String old_oid = op.getOrganization().getId();
|
414
|
414
|
String new_oid = professor.getOrgId();
|
415
|
415
|
if (this.professorDao.update(con, professor) > 0) {
|
416
|
416
|
if (!professor.getName().equals(op.getName())) {
|