作者 朱兆平

用户密码为空判断

@@ -33,9 +33,10 @@ public class UserPasswordMd5AOP { @@ -33,9 +33,10 @@ public class UserPasswordMd5AOP {
33 Object[] args = joinPoint.getArgs(); 33 Object[] args = joinPoint.getArgs();
34 if (args != null && args.length > 0 && args[0].getClass() == USERS.class) { 34 if (args != null && args.length > 0 && args[0].getClass() == USERS.class) {
35 USERS user = (USERS)args[0]; 35 USERS user = (USERS)args[0];
36 - user.setPassword(DigestUtils.md5Hex(user.getPassword()));  
37 - args[0] = user;  
38 - 36 + if (null!=user.getPassword() && !user.getPassword().isEmpty()){
  37 + user.setPassword(DigestUtils.md5Hex(user.getPassword()));
  38 + args[0] = user;
  39 + }
39 } 40 }
40 Object retmsg=null; 41 Object retmsg=null;
41 try { 42 try {