ソースを参照

--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,7 +73,7 @@ public class AuthApplyService {
73 73
		authApply.setApplyType(2);
74 74
		authApply.setSolveStatus(1);
75 75
		this.authApplyDao.insert(con, authApply);
76
		this.professorDao.updateAuthType(con, authApply.getProfessorId(), 1);
76
		this.professorDao.updateAuthStatusExpert(con, authApply.getProfessorId(), 1);
77 77
		for (String fn : fns) {
78 78
			this.authImageService.insertImg(con, authApplyId, fn);
79 79
		}
@ -86,7 +86,10 @@ public class AuthApplyService {
86 86
		if(auth==1){
87 87
			this.professorDao.updateAuthStatus(con, professorId, state);
88 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