|
|
@ -19,9 +19,17 @@ package com.epmet.service.evaluationindex.extract.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.dao.evaluationindex.extract.FactOriginTopicMainDailyDao; |
|
|
|
import com.epmet.dto.topic.TopicOriginInfoDTO; |
|
|
|
import com.epmet.entity.evaluationindex.extract.FactOriginTopicMainDailyEntity; |
|
|
|
import com.epmet.service.evaluationindex.extract.FactOriginTopicMainDailyService; |
|
|
|
import com.epmet.service.topic.TopicService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import net.bytebuddy.asm.Advice; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -30,8 +38,45 @@ import org.springframework.stereotype.Service; |
|
|
|
* @author generator generator@elink-cn.com |
|
|
|
* @since v1.0.0 2020-09-15 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
public class FactOriginTopicMainDailyServiceImpl extends BaseServiceImpl<FactOriginTopicMainDailyDao, FactOriginTopicMainDailyEntity> implements FactOriginTopicMainDailyService { |
|
|
|
@Autowired |
|
|
|
private TopicService topicService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerId 客户id |
|
|
|
* @param dateId yyyyMMdd |
|
|
|
* @return void |
|
|
|
* @author yinzuomei 数据采集:话题本身 |
|
|
|
* @description fact_origin_topic_log_daily 话题明细_日统计 fact_origin_topic_main_daily 话题主表_日统计 |
|
|
|
* @Date 2020/9/15 13:40 |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public Boolean topicCleaning(String customerId, String dateId) { |
|
|
|
//TODO
|
|
|
|
List<TopicOriginInfoDTO> topicOriginInfoList = topicService.queryTopicOriginInfoList(customerId, dateId); |
|
|
|
if (CollectionUtils.isEmpty(topicOriginInfoList)) { |
|
|
|
log.info(String.format("customerId%s,dateId%s,doesn't have any topic operation record",customerId,dateId)); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerId 客户id |
|
|
|
* @param dateId yyyyMMdd |
|
|
|
* @return java.lang.Boolean |
|
|
|
* @author yinzuomei |
|
|
|
* @description 数据采集:话题的评论 |
|
|
|
* @Date 2020/9/15 17:56 |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public Boolean topicCommentCleaning(String customerId, String dateId) { |
|
|
|
//TODO
|
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
} |