}
@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;
}