Examples of Merchant


Examples of com.lgx8.management.entities.Merchant

  @RequestMapping("/rebate/hdtjinit.do")
  public String hdtjInitPage(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()!=User.USER_TYPE_GSYG&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
      if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
        Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
        request.setAttribute("merchant", _m);
      }else{
        Organization _or = organizationDao.getOrganizationById(rtUser.getOrganizationid());
        request.setAttribute("organization", _or);
      }
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

      ci.setDhtjr(rtUser);
      ci.setDhtjrq(new Date());
      ci.setDhjfs(Double.parseDouble(dhjf));
      ci.setDhzt(ChargeIndex.CHARGEINDEX_DHZT_INIT);
      if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
        Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
        ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_MERCHANT);
        ci.setMerchantId(_m);
        double qbsl = _m.getFlqb();
        _m.setFlqb(qbsl-Double.parseDouble(dhjf));
        merchantDao.updateMerchant(_m);
      }else{
        Organization _or = organizationDao.getOrganizationById(rtUser.getOrganizationid());
        if(_or.getJGLX().equals("3")){
          ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_TGZ);
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG&&id!=0){
      ci = chargeIndexDao.getChargeIndex(id);
      if(ci!=null){
        String lx = ci.getDhlx();
        if(lx.equals(ChargeIndex.CHARGEINDEX_DHLX_MERCHANT)){
          Merchant _m = ci.getMerchantId();
          if(confirm.equals("0")){
            double flqb = _m.getFlqb();
            _m.setFlqb(flqb+ci.getDhjfs());
            ci.setDeleteflag("1");
          }else{
            if(ci.getDhfs().equals(ChargeIndex.CHARGEINDEX_DHFS_HANDLERJF)){
              double syjf = _m.getSYJFSL();
              _m.setSYJFSL(syjf+ci.getDhjfs());
              //ci.setHdjes(ci.getDhjfs());
            }
            ci.setDhjes(ci.getDhjfs());
          }
          merchantDao.updateMerchant(_m);
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    return null;
  }
 
  public void confirmRechargehistory(User u,Rechargehistory rh,String confirmLx){
    if(rh!=null&&rh.getCzzt()!=Rechargehistory.RECHARGEHISTORY_OVER){
      Merchant _m = rh.getMerchant();
      Organization _or = _m.getOrganization();
      if(confirmLx.equals("1")){
        rh.setCZQDR(u);
        rh.setCzqdrq(new Date());
        rh.setCzzt(Rechargehistory.RECHARGEHISTORY_OVER);
        double flje = 0.0;
        double czjfs=rh.getCZDHJFS();
        Rebaterule re_rule = null;
        if(_or != null&&!rh.getRESERVATION02().equals("02"))
        {
          if( _or.getJGLX().equals("2")){
            re_rule = rebateRuleDao.findRebateRuleByLx("01");
            double flqb = _or.getFlqb();
            if(re_rule!=null){
              flje = czjfs*re_rule.getFLLV();
              Rebate re = new Rebate();
              re.setFLED(flje);
              re.setFLSJ(new Date());
              re.setFLSYFBH(_or.getID());
              re.setFLLX("01");
              re.setRESERVATION01(_m.getSJMC());
              re.setRESERVATION02(_m.getID()+"");
              re.setRESERVATION03(_or.getJGMC());
              _or.setFlqb(flqb+flje);
              organizationDao.updateOrganization(_or);
              rebateDao.createRebate(re);
            }
          }
          if( _or.getJGLX().equals("3")){
            re_rule = rebateRuleDao.findRebateRuleByLx("02");
            double flqb = _or.getFlqb();
            if(re_rule!=null){
              flje = czjfs*re_rule.getFLLV();
              Rebate re = new Rebate();
              re.setFLED(flje);
              re.setFLSJ(new Date());
              re.setFLSYFBH(_or.getID());
              re.setFLLX("02");
              re.setRESERVATION01(_m.getSJMC());
              re.setRESERVATION02(_m.getID()+"");
              re.setRESERVATION03(_or.getJGMC());
              _or.setFlqb(flqb+flje);
              organizationDao.updateOrganization(_or);
              rebateDao.createRebate(re);
            }
          }
          if(_or.getJGLX().equals("4")){
            re_rule = rebateRuleDao.findRebateRuleByLx("03");
            double flqb = _or.getFlqb();
            if(re_rule!=null){
              flje = czjfs*re_rule.getFLLV();
              Rebate re = new Rebate();
              re.setFLED(flje);
              re.setFLSJ(new Date());
              re.setFLSYFBH(_or.getID());
              re.setFLLX("03");
              re.setRESERVATION01(_m.getSJMC());
              re.setRESERVATION02(_m.getID()+"");
              re.setRESERVATION03(_or.getJGMC());
              _or.setFlqb(flqb+flje);
              organizationDao.updateOrganization(_or);
              rebateDao.createRebate(re);
            }
          }
         
          Organization _por = _or.getSsjg();
          if(_por != null && _por.getJGLX().equals("5")){
            re_rule = rebateRuleDao.findRebateRuleByLx("04");
            double flqb = _por.getFlqb();
            if(re_rule!=null){
              flje = czjfs*re_rule.getFLLV();
              Rebate re = new Rebate();
              re.setFLED(flje);
              re.setFLSJ(new Date());
              re.setFLSYFBH(_por.getID());
              re.setFLLX("04");
              re.setRESERVATION01(_m.getSJMC());
              re.setRESERVATION02(_m.getID()+"");
              re.setRESERVATION03(_por.getJGMC());
              _por.setFlqb(flqb+flje);
              organizationDao.updateOrganization(_por);
              rebateDao.createRebate(re);
            }
          }
        }
        rechargehistoryDao.updateRechargeHistory(rh);
        double syjf = _m.getSYJFSL();
        _m.setSYJFSL(syjf+rh.getCZDHJFS());
        merchantDao.updateMerchant(_m);
      }else{
        rh.setDELETEFLAG("1");
        rechargehistoryDao.updateRechargeHistory(rh);
      }
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    Date date = new Date();
   
    String recordTime = format.format(date);
   
    Merchant merchant = merchantDao.getMerchantById(Long.parseLong(id));
   
    if(merchant != null)
    {
      Boolean flag = pointsRecordDao.checkPointsRecordExists(id, "1", recordIP, recordTime);
     
      if(flag)
      {
        double score = merchant.getSYJFSL();
       
        merchant.setSYJFSL(score-1);
       
        merchantDao.updateMerchant(merchant);
       
        PointsRecord record = new PointsRecord();
        record.setEntityId(id);
        record.setType("1");
        record.setEntityName(merchant.getSJMC());
        record.setPoints(1.00);
        record.setRecordIP(recordIP);
        record.setRecordTime(new Date());
       
        pointsRecordDao.savePointsRecord(record);
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    String stime = request.getParameter("stime");
    String etime = request.getParameter("etime");
    long orid = 0;
    long type = rtUser.getUsertype();
    if(type==2){
      Merchant or = (Merchant)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
      if(or!=null){
        orid = or.getID();
      }
    }
    if(type==3){
      Organization or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
      if(or!=null){
        orid = or.getID();
      }
    }
    //if usertype=6l该用户为员工查询所有usertype=1的用户
    UserQueryForm queryForm = new UserQueryForm();
    queryForm.setCardid(cardid);
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    long orid = 0;
    long type = 0l;
    if(rtUser!=null){
      type = rtUser.getUsertype();
      if(type==2){
        Merchant or = (Merchant)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        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

Examples of com.lgx8.management.entities.Merchant

    {
      if(u.getOrganizationid() != 0)
      {
        if(u.getUsertype() == 2)
        {
          Merchant m = merchantDao.getMerchantById(u.getOrganizationid());
          u.setMerchantname(m.getSJMC());
        }else if(u.getUsertype() == 3)
        {
          Organization o = organizationDao.getOrganizationById(u.getOrganizationid());
          u.setMerchantname(o.getJGMC());
        }
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

            {
              if(u.getOrganizationid() != 0)
              {
                if(u.getUsertype() == 2)
                {
                  Merchant m = merchantDao.getMerchantById(u.getOrganizationid());
                  u.setMerchantname(m.getSJMC());
                }else if(u.getUsertype() == 3)
                {
                  Organization o = organizationDao.getOrganizationById(u.getOrganizationid());
                  u.setMerchantname(o.getJGMC());
                }
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

   
    User u = null;
   
    if("2".equals(type))
    {
      Merchant merchant = merchantDao.getMerchantById(Long.parseLong(orgid));
      if(merchant != null)
      {
        u = merchant.getSJFRDB();
      }
    }else if("3".equals(type))
    {
      Organization org = organizationDao.getOrganizationById(Long.parseLong(orgid));
      if(org != null)
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.