/** * Description:查询当前用户的提现记录.<br> * * @author justin.xu * @version 0.1 2014年6月18日 * @param request * @param pageNo * @return * @throws Exception ModelAndView */ @RequestMapping(value = "/queryPageList/{pageNo}") @RequiresAuthentication public ModelAndView queryPageList(HttpServletRequest request, @PathVariable Integer pageNo) throws Exception { ModelAndView mv = new ModelAndView("account/cash/cashRecordList"); ShiroUser shiroUser = currentUser(); CashRecordCnd cashRecordCnd = new CashRecordCnd(); cashRecordCnd.setUserId(shiroUser.getUserId()); Page page = cashRecordService.queryPageListByCnd( cashRecordCnd, new Page(pageNo, BusinessConstants.DEFAULT_PAGE_SIZE)); mv.addObject("page", page); return mv; }
/** * Description:取消提现<br> * * @author justin.xu * @version 0.1 2014年6月18日 * @param request * @param session * @param response * @param shengReceiveForm * @return String */ @RequestMapping(value = "cancelCash") @RequiresAuthentication public @ResponseBody MessageBox cancelCash( HttpServletRequest request, HttpSession session, HttpServletResponse response, CashRecordCnd cashRecordCnd) { String result = BusinessConstants.SUCCESS; try { ShiroUser shiroUser = currentUser(); cashRecordCnd.setUserId(shiroUser.getUserId()); result = cashRecordService.saveCancelCash(cashRecordCnd, request); if (!"success".equals(result)) { return new MessageBox("0", result); } } catch (AppException ae) { return new MessageBox("0", ae.getMessage()); } catch (Exception e) { logger.error("取消提现出错", e); return new MessageBox("0", "网络连接异常,请刷新页面或稍后重试!"); } return new MessageBox("1", result); }