XMTT 5 years ago
parent
commit
6b504a62d5

+ 7 - 1
src/main/java/com/ekexiu/project/msconsole/system/service/SysService.java

@ -112,6 +112,12 @@ public class SysService {
112 112
        hospitalDao.update(con, hospital);
113 113
    }
114 114
115
    @Path("/changePw")
116
    @Post
117
    public void changePw(@JdbcConn(true)Connection con,@LoginUser SessionUser sessionUser,String newPw)throws SQLException {
118
        this.hospitalDao.changePw(con, StringUtil.md5(newPw), sessionUser.getId());
119
    }
120
115 121
    @Path("/ban")
116 122
    @Get
117 123
    public void ban(@JdbcConn(true) Connection con, @LoginUser SessionUser sessionUser, String id) throws SQLException {
@ -161,7 +167,7 @@ public class SysService {
161 167
        sessionUser.setPhone(hospital.getPhone());
162 168
        sessionUser.setLocation(hospital.getLocation());
163 169
        sessionUser.setAddr(hospital.getAddr());
164
        sessionUser.setDesc(hospital.getDescp());
170
        sessionUser.setDescp(hospital.getDescp());
165 171
        sessionUser.setImage(hospital.getImage());
166 172
        sessionUser.setActive(hospital.isActive());
167 173
        return sessionUser;

+ 5 - 5
src/main/java/com/ekexiu/project/msconsole/system/vo/SessionUser.java

@ -15,7 +15,7 @@ public class SessionUser implements AuthUser {
15 15
    private String phone;
16 16
    private String location;
17 17
    private String addr;
18
    private String desc;
18
    private String descp;
19 19
    private String image;
20 20
    private boolean active;
21 21
@ -96,12 +96,12 @@ public class SessionUser implements AuthUser {
96 96
        this.addr = addr;
97 97
    }
98 98
99
    public String getDesc() {
100
        return desc;
99
    public String getDescp() {
100
        return descp;
101 101
    }
102 102
103
    public void setDesc(String desc) {
104
        this.desc = desc;
103
    public void setDescp(String descp) {
104
        this.descp = descp;
105 105
    }
106 106
107 107
    public String getImage() {