Examples of ICardDao


Examples of com.lgx8.gateway.dao.ICardDao

   */
  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";
    if(cardid != null && !"".equals(cardid))
    {
      result2 =  cardDao.checkCardExists(cardid,rtU,(rtU.isMerchant()||rtU.isOrganization()));
    }
   
   
    PrintWriter pw = response.getWriter();
    pw.write(result1+":"+result2);
View Full Code Here

Examples of com.lgx8.gateway.dao.ICardDao

   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
   
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    ICardDao cardDao = (ICardDao) ac.getBean("cardDao");
   
    Integer count = Integer.parseInt(request.getParameter("count"));
    String card = request.getParameter("card");
    Double score = Double.parseDouble(request.getParameter("score"));
    String mobile = request.getParameter("mobile");
    String email = request.getParameter("email");
   
    long car3 = Long.parseLong(card);
   
    Card temp = null;
   
    for(int i=1;i<=count;i++,car3++)
    {
      //生成卡号且卡号唯一
      String car = car3+"";
      temp = cardDao.createUserByCard(car.toUpperCase(), score, rtUser.getUsertype(), 1l, rtUser.getOrganizationid(), rtUser, rtUser,count==1?mobile:null,count==1?email:null);
    }
   
    if(count == 1 &&(mobile != null && !"".equals(mobile)) && temp != null)
    {
      //当开卡成功后发短信到手机尊敬的会员您的乐共享登录名13036780222,卡/号818800010022密/码abc123,请登录www.lgx8.com【乐共享】
View Full Code Here

Examples of com.lgx8.gateway.dao.ICardDao

    }
   
    List<Card> cards = new ArrayList<Card>();
   
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    ICardDao cardDao = (ICardDao) ac.getBean("cardDao");
   
    cards = cardDao.findCardByConditions(rtUser.getId(), cardStart.toUpperCase(), cardEnd.toUpperCase());
   
    String[] headers = { "卡号", "密码", "积分" };
   
    int size = cards.size();
    int number = Integer.parseInt(numberStr);
View Full Code Here

Examples of com.lgx8.gateway.dao.ICardDao

   
    User user = userDao.findUserById(Long.parseLong(userId));
   
    PrintWriter out = response.getWriter();
   
    ICardDao cardDao = (ICardDao) ac.getBean("cardDao");
    List<Card> cards = cardDao.findCardByConditions(null, cardStart, cardEnd);
   
    if(user != null)
    {
      if(cards.size() == 0)
      {
View Full Code Here

Examples of com.lgx8.gateway.dao.ICardDao

    long car3 = Long.parseLong(card);
   
    Boolean flag = false;
   
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    ICardDao cardDao = (ICardDao) ac.getBean("cardDao");
   
    for(int i=1;i<=count;i++,car3++)
    {
      //生成卡号且卡号唯一
      String car = car3 + "";
     
      flag = cardDao.checkCardExists(car.toUpperCase());
     
      if(flag) break;
     
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.