|
@@ -5,8 +5,6 @@ import static org.jeecg.modules.adweb.seo.dto.ComprehensiveStatistics.KeywordRan
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.xkcoding.http.util.StringUtil;
|
|
import com.xkcoding.http.util.StringUtil;
|
|
|
|
|
|
-import jakarta.annotation.Resource;
|
|
|
|
-
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
@@ -21,11 +19,13 @@ import org.jeecg.modules.adweb.seo.dto.ComprehensiveStatistics;
|
|
import org.jeecg.modules.adweb.seo.entity.SeoKeywords;
|
|
import org.jeecg.modules.adweb.seo.entity.SeoKeywords;
|
|
import org.jeecg.modules.adweb.seo.entity.SeoKeywordsSerp;
|
|
import org.jeecg.modules.adweb.seo.entity.SeoKeywordsSerp;
|
|
import org.jeecg.modules.adweb.seo.mapper.SeoKeywordsMapper;
|
|
import org.jeecg.modules.adweb.seo.mapper.SeoKeywordsMapper;
|
|
|
|
+import org.jeecg.modules.adweb.seo.mapper.SeoKeywordsSerpMapper;
|
|
import org.jeecg.modules.adweb.seo.service.ISeoKeywordsRankService;
|
|
import org.jeecg.modules.adweb.seo.service.ISeoKeywordsRankService;
|
|
import org.jeecg.modules.adweb.seo.service.ISeoKeywordsSerpService;
|
|
import org.jeecg.modules.adweb.seo.service.ISeoKeywordsSerpService;
|
|
import org.jeecg.modules.adweb.seo.service.ISeoKeywordsService;
|
|
import org.jeecg.modules.adweb.seo.service.ISeoKeywordsService;
|
|
import org.jeecg.modules.adweb.seo.vo.RankInfoVO;
|
|
import org.jeecg.modules.adweb.seo.vo.RankInfoVO;
|
|
import org.jeecg.modules.adweb.seo.vo.SeoRankInfoVO;
|
|
import org.jeecg.modules.adweb.seo.vo.SeoRankInfoVO;
|
|
|
|
+import org.jeecg.modules.adweb.seo.vo.ServiceTimeVO;
|
|
import org.jeecg.modules.adweb.site.entity.AdwebSite;
|
|
import org.jeecg.modules.adweb.site.entity.AdwebSite;
|
|
import org.jeecg.modules.adweb.site.service.IAdwebSiteService;
|
|
import org.jeecg.modules.adweb.site.service.IAdwebSiteService;
|
|
import org.jeecg.modules.adweb.site.service.ISiteUserPermissionService;
|
|
import org.jeecg.modules.adweb.site.service.ISiteUserPermissionService;
|
|
@@ -42,10 +42,7 @@ import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @Description: seo_kpi_statistics
|
|
|
|
- * @Author: jeecg-boot
|
|
|
|
- * @Date: 2024-10-09
|
|
|
|
- * @Version: V1.0
|
|
|
|
|
|
+ * @Description: seo_kpi_statistics @Author: jeecg-boot @Date: 2024-10-09 @Version: V1.0
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -53,7 +50,7 @@ public class SeoKeywordsRankServiceImpl implements ISeoKeywordsRankService {
|
|
|
|
|
|
@Autowired private IAdwebSiteService adwebSiteService;
|
|
@Autowired private IAdwebSiteService adwebSiteService;
|
|
|
|
|
|
- @Resource private SysAdwebApi sysAdwebApi;
|
|
|
|
|
|
+ @Autowired private SysAdwebApi sysAdwebApi;
|
|
|
|
|
|
@Autowired private ISiteUserPermissionService siteUserPermissionService;
|
|
@Autowired private ISiteUserPermissionService siteUserPermissionService;
|
|
|
|
|
|
@@ -61,11 +58,13 @@ public class SeoKeywordsRankServiceImpl implements ISeoKeywordsRankService {
|
|
|
|
|
|
@Autowired private ISeoKeywordsService seoKeywordsService;
|
|
@Autowired private ISeoKeywordsService seoKeywordsService;
|
|
|
|
|
|
- @Resource private SeoKeywordsMapper seoKeywordsMapper;
|
|
|
|
|
|
+ @Autowired private SeoKeywordsMapper seoKeywordsMapper;
|
|
|
|
+
|
|
|
|
+ @Autowired private SeoKeywordsSerpMapper seoKeywordsSerpMapper;
|
|
|
|
|
|
@Autowired private ISeoKeywordsSerpService seoKeywordsSerpService;
|
|
@Autowired private ISeoKeywordsSerpService seoKeywordsSerpService;
|
|
|
|
|
|
- @Resource private SubscribePlanMapper subscribePlanMapper;
|
|
|
|
|
|
+ @Autowired private SubscribePlanMapper subscribePlanMapper;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<AdwebSite> getAllSites() {
|
|
public List<AdwebSite> getAllSites() {
|
|
@@ -191,6 +190,12 @@ public class SeoKeywordsRankServiceImpl implements ISeoKeywordsRankService {
|
|
Map map = new HashMap<>();
|
|
Map map = new HashMap<>();
|
|
map.put("appointKeyword", seoRankInfos.get(0));
|
|
map.put("appointKeyword", seoRankInfos.get(0));
|
|
map.put("longTailKeyword", seoRankInfos.get(1));
|
|
map.put("longTailKeyword", seoRankInfos.get(1));
|
|
|
|
+
|
|
|
|
+ // TODO - 获取达标时间和剩余服务时间
|
|
|
|
+ if (userPlanSubscription.getKeywordsAchieveTime() == null) {
|
|
|
|
+ seoKeywordsSerpMapper.getAchieveDate(siteCode, 10, 10, 10);
|
|
|
|
+ }
|
|
|
|
+ map.put("serviceTime", new ServiceTimeVO());
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|