Browse Source

修复错误代码

master
jianjun 5 years ago
parent
commit
7d8befb142
  1. 7
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsPublicityServiceImpl.java
  2. 10
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/DimDepartmentService.java

7
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsPublicityServiceImpl.java

@ -3,7 +3,10 @@ package com.epmet.service.impl;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.utils.DateUtils;
import com.epmet.dto.stats.ArticleGridPublishedSummaryDTO;
import com.epmet.entity.stats.*;
import com.epmet.entity.stats.DimDepartmentEntity;
import com.epmet.entity.stats.DimGridEntity;
import com.epmet.entity.stats.FactArticlePublishedDepartmentDailyEntity;
import com.epmet.entity.stats.FactArticlePublishedGridDailyEntity;
import com.epmet.service.StatsPublicityService;
import com.epmet.service.stats.*;
import com.epmet.service.voice.ArticlePublishRangeService;
@ -178,7 +181,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService {
private void statsPublishedAgencyDaily(Date statsDate, DimIdGenerator.DimIdBean dimIdBean, String customerId, Map<String, ArticleGridPublishedSummaryDTO> agencySummaryMap) {
//获取所有客户
List<DimAgencyEntity> departmentDTOList = null;//dimAgencyService.getAgencyListByCustomerId(customerId);
List<DimDepartmentEntity> departmentDTOList = null;//dimAgencyService.getAgencyListByCustomerId(customerId);
if (CollectionUtils.isEmpty(departmentDTOList)) {
log.warn("publicitySummary getAgencyListByCustomerId return empty,customerId:{}", customerId);
return;

10
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/DimDepartmentService.java

@ -95,4 +95,14 @@ public interface DimDepartmentService extends BaseService<DimDepartmentEntity> {
void delete(String[] ids);
void addDepartmentDims(List<CustomerDepartmentEntity> departments);
/**
* desc: 根据客户Id获取 部门数据
*
* @param null
* @return:
* @date: 2020/6/18 17:45
* @author: jianjun liu
*/
List<DimDepartmentEntity> getDepartmentListByCustomerId(String customerId);
}
Loading…
Cancel
Save