jiapeng 7 anos atrás
pai
commit
601ed31090

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

357
		Professor p = this.professorDao.query(con, id);
357
		Professor p = this.professorDao.query(con, id);
358
		if (p != null) {
358
		if (p != null) {
359
			String oid = this.orgService.createOrganization(con, name);
359
			String oid = this.orgService.createOrganization(con, name);
360
			String old = p.getOrgId();
360
			String old = p.getOrganization().getId();
361
			if (!oid.equals(old)) {
361
			if (!oid.equals(old)) {
362
				this.professorDao.updateOrg(con, oid, id);
362
				this.professorDao.updateOrg(con, oid, id);
363
				if (old != null) {
363
				if (old != null) {
382
			}
382
			}
383
		Professor op = this.professorDao.query(con, professor.getId());
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
		String new_oid = professor.getOrgId();
386
		String new_oid = professor.getOrgId();
387

387

388
		if (this.professorDao.update(con, professor) > 0) {
388
		if (this.professorDao.update(con, professor) > 0) {
410
			}
410
			}
411
		Professor op = this.professorDao.query(con, professor.getId());
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
		String new_oid = professor.getOrgId();
414
		String new_oid = professor.getOrgId();
415
		if (this.professorDao.update(con, professor) > 0) {
415
		if (this.professorDao.update(con, professor) > 0) {
416
			if (!professor.getName().equals(op.getName())) {
416
			if (!professor.getName().equals(op.getName())) {