public String approveUpdate() { Seller seller = (Seller) getSession().getAttribute(FrontContainer.SELLER_INFO); if (seller == null || StringUtils.isBlank(seller.getOwner_mobile())) { return "toLogin"; } // e = sellerService.selectById(seller.getId()); selectLeftMenu = "approve"; setSelectMenu(FrontContainer.not_select_menu); // 设置主菜单为不选中 sellerService.update(e); e = sellerService.selectById(seller.getId()); return "approvepage"; // return "seller"; }
/* * 修改商家信息 */ public String save() { logger.error("saveSetting....."); logger.error(e); sellerService.update(e); Seller seller = (Seller) getSession().getAttribute(FrontContainer.SELLER_INFO); if (seller == null || StringUtils.isBlank(seller.getOwner_mobile())) { return "toLogin"; } selectLeftMenu = "introduction"; e = sellerService.selectById(seller.getId()); setSelectMenu(FrontContainer.not_select_menu); // 设置主菜单为不选中 // e.clear(); return "seller"; }
/** 密码修改 */ public String changePwd() { Seller seller = (Seller) getSession().getAttribute(FrontContainer.SELLER_INFO); if (seller == null || StringUtils.isBlank(seller.getOwner_mobile())) { return "toLogin"; } if (StringUtils.isBlank(e.getNewPassword1()) || StringUtils.isBlank(e.getNewPassword2()) || StringUtils.isBlank(e.getPassword()) || !e.getNewPassword2().equals(e.getNewPassword1())) { throw new NullPointerException(); } getSession().setAttribute(FrontContainer.selectMenu, FrontContainer.not_select_menu); selectLeftMenu = "password"; e.setPassword(MD5.md5(e.getNewPassword1())); e.setId(seller.getId()); sellerService.update(e); this.errorMsg = "修改密码成功!"; // 重新缓存密码数据 seller.setPassword(e.getPassword()); e.clear(); return "changePwdSuccess"; }