Package com.eatle.persistent.pojo.foundation.business

Examples of com.eatle.persistent.pojo.foundation.business.RecommendMerchant


  }

  @Override
  public RecommendMerchant findById(long id)
  {
    RecommendMerchant rm = recommendMerchantMapper.selectByPrimaryKey(id);

    // 推荐人
    if(rm.getIdentifyType() == Constants.Identity.IDENTITY_MERCHANT)
      rm.setIdentifyStr(merchantMapper.selectByPrimaryKey(rm.getIdentifyId()).getMerchantName());
    else
      rm.setIdentifyStr(customerMapper.selectByPrimaryKey(rm.getIdentifyId()).getLoginEmail());
    // 推荐人身份类型
    rm.setIdentifyTypeStr(identityHtml.get("" + rm.getIdentifyType()));
    // 推荐时间
    if(rm.getSubTime() != null)
      rm.setSubTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(rm.getSubTime()));
    // 处理状态
    rm.setHandleStatusStr(handleStatusHtml.get("" + rm.getHandleStatus()));
    // 处理时间
    if(rm.getHandleTime() != null)
      rm.setHandleTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(rm.getHandleTime()));
   
    return rm;
  }
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.foundation.business.RecommendMerchant

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.