Commit a24f9ce3 authored by 李德才's avatar 李德才

Merge remote-tracking branch 'origin/SZDAS_V2.0' into SZDAS_V2.0

parents 05575cda 1d83b47f
package com.archser.aserver.service; package com.archser.aserver.service;
import com.archser.aserver.util.redis.InfoUser;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
...@@ -22,7 +23,14 @@ public class UserService { ...@@ -22,7 +23,14 @@ public class UserService {
*/ */
@Before(Tx.class) @Before(Tx.class)
public int updatePwd(String password, String username) { public int updatePwd(String password, String username) {
return Db.update(Db.getSql("updatePassword"), password, username); int update = Db.update(Db.getSql("updatePassword"), password, username);
if(update>0) {
//更新redis信息
User user = InfoUser.getUser(username);
user.setPassword(password);
InfoUser.saveUser(user);
}
return update;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment