Beispiel #1
0
 /**
  * @Description: 跳转到充值页面
  *
  * @param request
  * @return
  * @author 马正正
  * @date 2015年10月27日
  */
 @RequestMapping(value = "toRecharge")
 @OpLog(logDesc = "跳转到充值页面")
 public String toRecharge(HttpServletRequest request) {
   Map<String, String> accountType = AccountEnum.getDeposit();
   accountType.remove("");
   Map<String, String> rechargeForward = RechargeForward.getComb();
   rechargeForward.remove("");
   request.setAttribute("accountType", JSONUtils.toCombo(accountType));
   request.setAttribute("rechargeForward", JSONUtils.toCombo(rechargeForward));
   request.setAttribute("accountTypeMap", JSONUtils.toJson(accountType));
   request.setAttribute("rechargeForwardMap", JSONUtils.toJson(rechargeForward));
   return "recharge/recharge";
 }
Beispiel #2
0
 /**
  * @Description: 跳转到查询页面
  *
  * @param request
  * @return
  * @author 马正正
  * @date 2015年8月19日
  */
 @RequestMapping(value = "init")
 @OpLog(logDesc = "跳转到查询页面")
 public String init(HttpServletRequest request) {
   request.setAttribute("accountTypeCombo", JSONUtils.toCombo(AccountEnum.getDeposit()));
   request.setAttribute("rechargeForwardCombo", JSONUtils.toCombo(RechargeForward.getComb()));
   request.setAttribute("rechargeWayCombo", JSONUtils.toCombo(RechargeWay.getComb()));
   request.setAttribute("accountType", JSONUtils.toJson(AccountEnum.getDeposit()));
   request.setAttribute("rechargeStatus", JSONUtils.toJson(RechargeStatus.getComb()));
   request.setAttribute("rechargeForward", JSONUtils.toJson(RechargeForward.getComb()));
   request.setAttribute("rechargeWay", JSONUtils.toJson(RechargeWay.getComb()));
   return "recharge/init";
 }
Beispiel #3
0
  /**
   * @Description: 查询充值记录
   *
   * @param request
   * @param response
   * @author 马正正
   * @date 2015年8月19日
   */
  @RequestMapping(value = "list")
  @ResponseBody
  @OpLog(logDesc = "查询充值记录")
  public void list(HttpServletRequest request, HttpServletResponse response, MConditions cons) {
    try {
      PageObject po = getPageObject(request);

      po.getCondition().put("accountType", request.getParameter("accountType"));
      po.getCondition().put("way", request.getParameter("way"));
      po.getCondition().put("forward", request.getParameter("forward"));
      po.getCondition().put("startDate", cons.getStartDate());
      po.getCondition().put("endDate", cons.getEndDate());
      po.getCondition().put("memberNo", cons.getMemberNo());

      writeToPage(JSONUtils.toJson(mRechargeService.query(po)), response);
    } catch (Exception e) {
      log.error("查询提现单异常", e);
    }
  }