Quellcode durchsuchen

专家录入审核和设置用户业务数据时,authType随authStuatusExpert的值进行变化。authType初始值为0。

XMTT vor 7 Jahren
Ursprung
Commit
b2d863dfd6

+ 2 - 0
src/main/java/com/ekexiu/console/system/dao/ArticleDao.java

@ -3,6 +3,7 @@ package com.ekexiu.console.system.dao;
3 3
import com.ekexiu.console.system.po.Article;
4 4
import com.ekexiu.console.system.pojo.ArticleInfo;
5 5
import org.jfw.apt.annotation.Nullable;
6
import org.jfw.apt.orm.annotation.dao.Batch;
6 7
import org.jfw.apt.orm.annotation.dao.Column;
7 8
import org.jfw.apt.orm.annotation.dao.DAO;
8 9
import org.jfw.apt.orm.annotation.dao.method.From;
@ -10,6 +11,7 @@ import org.jfw.apt.orm.annotation.dao.method.OrderBy;
10 11
import org.jfw.apt.orm.annotation.dao.method.Where;
11 12
import org.jfw.apt.orm.annotation.dao.method.operator.PageQuery;
12 13
import org.jfw.apt.orm.annotation.dao.method.operator.QueryVal;
14
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
13 15
import org.jfw.apt.orm.annotation.dao.method.operator.UpdateWith;
14 16
import org.jfw.apt.orm.annotation.dao.param.*;
15 17
import org.jfw.apt.orm.core.defaultImpl.StringHandler;

+ 6 - 1
src/main/java/com/ekexiu/console/system/service/ProfessorService.java

@ -177,6 +177,11 @@ public class ProfessorService {
177 177
    @Path("/updateBusinessData")
178 178
    public void updateBusinessData(@JdbcConn(true) Connection con,String id,@Nullable int authentication,@Nullable int authStatus,@Nullable int authStatusExpert,int sortFirst)throws SQLException{
179 179
        this.professorDao.updateBusinessData(con, id, authentication, authStatus, authStatusExpert, sortFirst);
180
        if (authStatusExpert == 3){
181
            this.professorDao.updateAuthType(con, id, 1);
182
        }else {
183
            this.professorDao.updateAuthType(con, id, 0);
184
        }
180 185
    }
181 186
182 187
    @Path("/createCheck")
@ -232,7 +237,7 @@ public class ProfessorService {
232 237
        professor.setName(name);
233 238
        professor.setEmail(email);
234 239
        professor.setPhone(mobile);
235
        professor.setAuthType(1);
240
        professor.setAuthType(0);
236 241
        professor.setAuthStatus(0);
237 242
        professor.setAuthStatusExpert(0);
238 243
        professor.setSortFirst(0);

+ 5 - 1
src/main/java/com/ekexiu/console/system/service/UserInfoService.java

@ -254,7 +254,11 @@ public class UserInfoService {
254 254
                professor.setAddress((String) userInfo.get("address"));
255 255
                professor.setProvince((String) userInfo.get("province"));
256 256
                professor.setAuthentication((Integer) userInfo.get("authentication"));
257
                professor.setAuthType(1);
257
                if (authStatusExpert == 3){
258
                    professor.setAuthType(1);
259
                }else {
260
                    professor.setAuthType(0);
261
                }
258 262
                if(userInfo.get("authStatus")!=null) {
259 263
                    professor.setAuthStatus((Integer) userInfo.get("authStatus"));
260 264
                }else {