Selaa lähdekoodia

实名认证页面身份证号录入

XMTT 8 vuotta sitten
vanhempi
commit
3bdf3aefdc

+ 1 - 1
src/main/java/com/ekexiu/console/system/dao/ProfessorDao.java

24
24
25
    @UpdateWith
25
    @UpdateWith
26
    @From(Professor.class)
26
    @From(Professor.class)
27
    public abstract int updateAuthStatus(Connection con, String id, @Set Integer authStatus) throws SQLException;
27
    public abstract int updateAuthStatus(Connection con, String id, @Set Integer authStatus,@Set String idCard) throws SQLException;
28
28
29
    @UpdateWith
29
    @UpdateWith
30
    @From(Professor.class)
30
    @From(Professor.class)

+ 11 - 0
src/main/java/com/ekexiu/console/system/po/Professor.java

48
    private Integer authStatusExpert;
48
    private Integer authStatusExpert;
49
    private String phone;
49
    private String phone;
50
    private String email;
50
    private String email;
51
    private String idCard;
52
53
    @Column(value= DE.String_de,dbType="VARCHAR(18)")
54
    public String getIdCard() {
55
        return idCard;
56
    }
57
58
    public void setIdCard(String idCard) {
59
        this.idCard = idCard;
60
    }
61
51
    private Integer sortFirst;
62
    private Integer sortFirst;
52
63
53
    @Column(value=DE.String_de,dbType="TEXT")
64
    @Column(value=DE.String_de,dbType="TEXT")

+ 2 - 2
src/main/java/com/ekexiu/console/system/service/AuthApplyService.java

75
75
76
    @Post
76
    @Post
77
    @Path("/state")
77
    @Path("/state")
78
    public void updateState(@JdbcConn(true) Connection con, String authApplyId, Integer solveStatus, Integer applyType, String professorId) throws SQLException {
78
    public void updateState(@JdbcConn(true) Connection con, String authApplyId, Integer solveStatus, Integer applyType, String professorId,String idCard) throws SQLException {
79
        this.authApplyDao.updateSolveStatus(con, solveStatus, authApplyId);
79
        this.authApplyDao.updateSolveStatus(con, solveStatus, authApplyId);
80
        if (applyType == 1) {
80
        if (applyType == 1) {
81
            this.professorDao.updateAuthStatus(con, professorId, solveStatus);
81
            this.professorDao.updateAuthStatus(con, professorId, solveStatus,idCard);
82
        } else if (applyType == 2) {
82
        } else if (applyType == 2) {
83
            this.professorDao.updateAuthStatusExpert(con, professorId, solveStatus);
83
            this.professorDao.updateAuthStatusExpert(con, professorId, solveStatus);
84
            if (solveStatus == 3) {
84
            if (solveStatus == 3) {