Package com.lgx8.right.dao

Examples of com.lgx8.right.dao.IUserDao


  @RequestMapping("/recharge/initrechargeapply.do")
  public String initRechargePageApply(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      request.setAttribute("merchant", _m);
    }
    return "/management/recharge/create_rechargeapply";
  }
View Full Code Here


    String czje = request.getParameter("czje");
    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_SDCZ);
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
View Full Code Here

    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String czje = request.getParameter("czje");
    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
      rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
View Full Code Here

    int curPage = Integer.parseInt(str_curPage==null?"1":str_curPage);
    User user = RunTimeUser.getRunTimeUser(request);
    if(user.getUsertype()==User.USER_TYPE_MERCHANT){
      long m_id = user.getOrganizationid();
      if(m_id!=0){
        Merchant m = merchantDao.getMerchantById(m_id);
        name = m.getSJMC();
      }
    }
    List<RechargeHistoryCount> list = rechargeHistoryCountService.getRechargeHistoryCount(name, st_time, ed_time, curPage-1);
    int count = rechargeHistoryCountService.getRechargeHistoryCountPageCount(name, st_time, ed_time);
    request.setAttribute("list", list);
View Full Code Here

      }

      for (int n = 1; n <= size; n++) {
        HSSFRow rowdata = sheet.createRow(n);
        // int i = (n - 1) + ((t - 1) * number);
        RebateContent rc = list.get(n-1);
        HSSFCell cell0 = rowdata.createCell(0);
        HSSFRichTextString text0 = new HSSFRichTextString(rc.getFllx());
        cell0.setCellValue(text0);
        cell0.setCellStyle(styledata);

        HSSFCell cell1 = rowdata.createCell(1);
        // HSSFRichTextString text1 = new
        // HSSFRichTextString(card.getPassword());
        cell1.setCellValue(rc.getOid());
        cell1.setCellStyle(styledata);

        HSSFCell cell2 = rowdata.createCell(2);
        // HSSFRichTextString text2 = new
        // HSSFRichTextString(card.getScore().toString());
        cell2.setCellValue(rc.getName());
        cell2.setCellStyle(styledata);

        HSSFCell cell3 = rowdata.createCell(3);
        cell3.setCellValue(rc.getJf_count());
        cell3.setCellStyle(styledata);
       

      }

View Full Code Here

    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_SDCZ);
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
      rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
      if(is_nore!=null&&is_nore.length > 0){
        czjf = request.getParameter("czjf");
        rechargeh.setRESERVATION02("02");//设定为不返利
      }else{
        czjf = Double.parseDouble(czje==null?"0":czje)*10+"";
        rechargeh.setRESERVATION02("01");//设定为返利
      }
      rechargeh.setCZDHJFS(Double.parseDouble(czjf==null?"0":czjf));
      rechargeh.setCZYHLX("02");
      if(_m!=null){
        rechargeh.setMerchant(_m);
      }
      rechargehistoryDao.createRechargeHistory(rechargeh);
      request.setAttribute("rechargehistory", rechargeh);
    }
    return "/management/recharge/result_rechargehistory";
View Full Code Here

    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String idString = request.getParameter("id");
    String confirmlx = request.getParameter("confirmType");
    long id = idString==null?0l:Long.parseLong(idString);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG&&id!=0){
      Rechargehistory rh = rechargehistoryDao.findRechargehistoryById(id);
      rechargeRebateService.confirmRechargehistory(rtUser, rh, confirmlx);
      request.setAttribute("rechargehistory", rh);
      request.setAttribute("confirm", "true");
    }
    return "/management/recharge/result_rechargehistory";
View Full Code Here

    String czje = request.getParameter("czje");
    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
      rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
      if(is_nore!=null&&is_nore.length > 0){
        czjf = request.getParameter("czjf");
        rechargeh.setRESERVATION02("02");
      }else{
        czjf = Double.parseDouble(czje==null?"0":czje)*10+"";
        rechargeh.setRESERVATION02("01");
      }
      rechargeh.setCZDHJFS(Double.parseDouble(czjf==null?"0":czjf));
      rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_ZFBZ);
      rechargeh.setCZYHLX("02");
      if(_m!=null){
        rechargeh.setMerchant(_m);
      }
     
      rechargehistoryDao.createRechargeHistory(rechargeh);
      request.setAttribute("rechargehistory", rechargeh);
     
View Full Code Here

    }
   
    List<Scorecard> cards = new ArrayList<Scorecard>();
   
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    IScorecardDao scorecardDao = (IScorecardDao) ac.getBean("scorecardDao");
   
    cards = scorecardDao.listScorecards(cardStart, cardEnd);
   
    String[] headers = { "卡号", "密码", "积分", "有效开始时间", "有效结束时间" };
   
    int size = cards.size();
    int number = Integer.parseInt(numberStr);
View Full Code Here

  /**
   * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    IUserDao userDao = (IUserDao) ac.getBean("userDao");
   
    ICardDao cardDao = (ICardDao) ac.getBean("cardDao");
   
    RunTimeUser rtU = RunTimeUser.getRunTimeUser(request);
   
    String mobile = request.getParameter("mobile");
    String result1 = "0";
    if(mobile != null && !"".equals(mobile))
    {
      result1 =  userDao.checkMobileExists(mobile);
    }
   
    String cardid = request.getParameter("cardid");
   
    String result2 = "0";
View Full Code Here

TOP

Related Classes of com.lgx8.right.dao.IUserDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.