/** 远程修改密码 */ public String changePassword(String userId, String passWord, String OldPassword) { FhiUser fu = userServiceImple.queryById(userId); if (!(fu.getPassWord().toString().equals(MD5andKL.MD5(OldPassword).toString()))) { System.out.println(fu.getPassWord()); return "0"; } else { fu.setPassWord(MD5andKL.MD5(passWord)); System.out.println(fu.getPassWord()); userServiceImple.update(fu); return "1"; } }
public String queryPermission(FhiUser fu) { MessageContext ctx = context.getMessageContext(); HttpServletRequest request = (HttpServletRequest) ctx.get(AbstractHTTPDestination.HTTP_REQUEST); HttpSession session = request.getSession(); String str = ""; str = userServiceImple.queryWebService(fu); if ("true".equals(str.toString())) { session.setAttribute("wmsRFhiUser", fu); return "true"; } else { return "false"; } }