Преглед на файлове

--update updateState();

zzy.zhiyuan.foxmail преди 8 години
родител
ревизия
231040036d
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      src/main/java/com/ekexiu/portal/service/AuthApplyService.java

+ 5 - 2
src/main/java/com/ekexiu/portal/service/AuthApplyService.java

73
		authApply.setApplyType(2);
73
		authApply.setApplyType(2);
74
		authApply.setSolveStatus(1);
74
		authApply.setSolveStatus(1);
75
		this.authApplyDao.insert(con, authApply);
75
		this.authApplyDao.insert(con, authApply);
76
		this.professorDao.updateAuthType(con, authApply.getProfessorId(), 1);
76
		this.professorDao.updateAuthStatusExpert(con, authApply.getProfessorId(), 1);
77
		for (String fn : fns) {
77
		for (String fn : fns) {
78
			this.authImageService.insertImg(con, authApplyId, fn);
78
			this.authImageService.insertImg(con, authApplyId, fn);
79
		}
79
		}
86
		if(auth==1){
86
		if(auth==1){
87
			this.professorDao.updateAuthStatus(con, professorId, state);
87
			this.professorDao.updateAuthStatus(con, professorId, state);
88
		}else if(auth==2){
88
		}else if(auth==2){
89
			this.professorDao.updateAuthType(con, professorId, state);
89
			this.professorDao.updateAuthStatusExpert(con, professorId, state);
90
			if(state==3){
91
				this.professorDao.updateAuthType(con, professorId, 1);
92
			}
90
		}
93
		}
91
	}
94
	}
92
	
95