Package com.lgx8.management.entities

Examples of com.lgx8.management.entities.Organization


  public ModelAndView delOrganization(HttpServletRequest request,HttpServletResponse response) {
    String keyid= request.getParameter("keyid");
    if (!"".equals(keyid)) {
        String[] keyArray = keyid.split(",");
        for (int i = 0 ; i < keyArray.length ; i++) {
          Organization m = organizationDao.getOrganizationById(Long.parseLong(keyArray[i]));
          if (m != null )
        {
          m.setDELETEFLAG("1");
            organizationDao.updateOrganization(m);
        }
        }
      }
    return new ModelAndView(new RedirectView("../page/management/organization/list_organization.jsp"));
View Full Code Here


  }
 
  @RequestMapping("/organization/modifyOrganizationInit.do")
  public ModelAndView modifyOrganizationInit(HttpServletRequest request,HttpServletResponse response) {
    String SJID = request.getParameter("id");//商家id
    Organization or = organizationDao.getOrganizationById(Long.parseLong(SJID));
    List<Organization> orgs = organizationDao.listAllOrganizations(SJID);
    request.setAttribute("orgs", orgs);
    return new ModelAndView("/management/organization/modify_organization").addObject("organization", or);
  }
View Full Code Here

  }
 
  @RequestMapping("/organization/setOrganizationCard.do")
  public ModelAndView setOrganizationCard(HttpServletRequest request,HttpServletResponse response) {
    String SJID = request.getParameter("id");//商家id
    Organization or = organizationDao.getOrganizationById(Long.parseLong(SJID));
    List<Organization> orgs = organizationDao.listAllOrganizations(SJID);
    request.setAttribute("orgs", orgs);
    return new ModelAndView("/management/organization/setcard_organization").addObject("organization", or);
  }
View Full Code Here

        if(_or!=null){
          _orid = _or.getID();
        }
      }
      if(_type==3){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0){
      String hql = "";
View Full Code Here

        if(_or!=null){
          _orid = _or.getID();
        }
      }
      if(_type==3){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0){
      User user = new User();
View Full Code Here

          sb.append(" and t1.merchant.id="+_or.getID());
        }
      }
     
      if(_type==User.USER_TYPE_TGSTATION){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          sb.append(" and t1.xfhy.organizationid="+_or.getID());
        }
      }
      /**
       * 当推广中心和运营中心查询下属联盟店家的消费信息
       */
      if(_type==User.USER_TYPE_TGCENTER||_type==User.USER_TYPE_YYCENTER){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          sb.append(" and t1.merchant.organization.id="+_or.getID());
        }
      }
     
      String hql = "";
      Object[] o = new Object[]{};
View Full Code Here

    long _orid = 0;
    long _type = 0l;
    if(rtUser!=null){
      _type = rtUser.getUsertype();
      if(_type==3){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0&&_type==3){
      String hql = "";
View Full Code Here

        if(_or!=null){
          _orid = _or.getID();
        }
      }
      if(_type==4||_type==5){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0&&_type!=0&&_type!=1&&_type!=3){
      User u = new User();
View Full Code Here

        if(_or!=null){
          _orid = _or.getID();
        }
      }
      if(_type==4||_type==5){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0){
      String hql = "";
View Full Code Here

    if(p_id!=0&&p_type!=0){
      Rebate re = new Rebate();
      Rebaterule re_rule = null;
      double flje = 0.0;
      if(p_type==3){
        Organization or = organizationDao.getOrganizationById(p_id);
        double qbsj = or.getFlqb();
        _xf.setXFLX("02");
        re_rule = rebateRuleDao.findRebateRuleByLx("02");
        if(re_rule!=null){
        flje = xfje*re_rule.getFLLV();
          re.setFLED(flje);
          re.setFLSJ(date);
          re.setFLSYFBH(p_id);
          re.setFLLX("02");
          or.setFlqb(qbsj+flje);
          re.setRESERVATION01(u.getTruename());
          re.setRESERVATION02(u.getId()+"");
          re.setRESERVATION03(or.getJGMC());
          organizationDao.updateOrganization(or);
          rebateDao.createRebate(re);
        }
      }
      if(p_type==2){
 
View Full Code Here

TOP

Related Classes of com.lgx8.management.entities.Organization

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.