|
|
|
|
@@ -1,7 +1,9 @@
|
|
|
|
|
package com.cool.store.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.cool.store.constants.RedisConstant;
|
|
|
|
|
import com.cool.store.dao.EnterpriseUserDAO;
|
|
|
|
|
import com.cool.store.dao.HyPartnerLineInfoDAO;
|
|
|
|
|
import com.cool.store.dao.HyPartnerUserInfoDAO;
|
|
|
|
|
@@ -17,19 +19,21 @@ import com.cool.store.enums.WorkflowStatusEnum;
|
|
|
|
|
import com.cool.store.exception.ServiceException;
|
|
|
|
|
import com.cool.store.request.CloseFollowRequest;
|
|
|
|
|
import com.cool.store.request.LineRequest;
|
|
|
|
|
import com.cool.store.service.EnterpriseUserService;
|
|
|
|
|
import com.cool.store.service.HyPartnerLineInfoService;
|
|
|
|
|
import com.cool.store.utils.CoolDateUtils;
|
|
|
|
|
import com.cool.store.utils.RedisUtilPool;
|
|
|
|
|
import com.cool.store.utils.StringUtil;
|
|
|
|
|
import com.cool.store.vo.*;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.text.MessageFormat;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@@ -49,6 +53,8 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|
|
|
|
EnterpriseUserDAO enterpriseUserDAO;
|
|
|
|
|
@Resource
|
|
|
|
|
UserRegionMappingDAO userRegionMappingDAO;
|
|
|
|
|
@Resource
|
|
|
|
|
private RedisUtilPool redisUtilPool;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public StageCountVO selectStagePendingCount(String userId) {
|
|
|
|
|
@@ -291,6 +297,18 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|
|
|
|
return publicSeaLineList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public PartnerLineBaseInfoVO getPartnerLinBaseInfo(String partnerId) {
|
|
|
|
|
PartnerLineBaseInfoVO lineBaseInfoVO = new PartnerLineBaseInfoVO();
|
|
|
|
|
// todo wxp 需要加条件
|
|
|
|
|
HyPartnerLineInfoDO lineInfoDO = hyPartnerLineInfoDAO.getByPartnerId(partnerId);
|
|
|
|
|
BeanUtil.copyProperties(lineInfoDO, lineBaseInfoVO);
|
|
|
|
|
String coolingPeriodFirstLoginCacheKey = MessageFormat.format(RedisConstant.COOLINGPERIOD_FIRSTLOGIN_KEY, partnerId);
|
|
|
|
|
String value = redisUtilPool.getString(coolingPeriodFirstLoginCacheKey);
|
|
|
|
|
lineBaseInfoVO.setCoolDownFirstLoginFlag(StringUtils.isNotBlank(value));
|
|
|
|
|
return lineBaseInfoVO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* convertPartnerBlackListDTOToVo
|
|
|
|
|
* @param partnerBlackListDTO
|
|
|
|
|
|