|
|
@ -10,13 +10,15 @@ import com.epmet.service.evaluationindex.extract.toscreen.ScreenProjectSettleSer |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectDataService; |
|
|
|
import com.epmet.service.project.ProjectProcessService; |
|
|
|
import com.epmet.service.project.ProjectService; |
|
|
|
import com.epmet.service.topic.TopicService; |
|
|
|
import com.epmet.service.user.UserService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.stream.Collector; |
|
|
|
import java.util.Optional; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
@ -36,6 +38,10 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
|
private ProjectService projectService; |
|
|
|
@Autowired |
|
|
|
private ProjectProcessService processService; |
|
|
|
@Autowired |
|
|
|
private TopicService topicService; |
|
|
|
@Autowired |
|
|
|
private UserService userService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 抽取项目数据到screen_project_* |
|
|
@ -65,7 +71,7 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
|
|
|
|
|
} |
|
|
|
List<ScreenProjectDataDTO> metaData = |
|
|
|
originMainService.initNewScreenProjectData(param.getCustomerId(), param.getDateId(),exceedLimit,about2ExceedLimit); |
|
|
|
originMainService.initNewScreenProjectData(param.getCustomerId(), rows <= NumConstant.ZERO ? null : param.getDateId(),exceedLimit,about2ExceedLimit); |
|
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(metaData)) { |
|
|
|
List<ProjectEntity> info = projectService.getProjectInfo(metaData.stream().map(ScreenProjectDataDTO::getProjectId).collect(Collectors.toList())); |
|
|
@ -77,7 +83,9 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
|
return null; |
|
|
|
})); |
|
|
|
} |
|
|
|
metaData = Optional.ofNullable(topicService.getScreenProjectData(metaData)).orElse(metaData); |
|
|
|
|
|
|
|
metaData = Optional.ofNullable(userService.getScreenProjectData(metaData)).orElse(metaData); |
|
|
|
} |
|
|
|
ScreenProjectDataDTO orientCase = new ScreenProjectDataDTO(); |
|
|
|
orientCase.setCustomerId(param.getCustomerId()); |
|
|
@ -85,6 +93,11 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
|
List<ScreenProjectDataDTO> orientData = |
|
|
|
targetDbService.getPending(orientCase); |
|
|
|
|
|
|
|
//TODO 给metaData和orientData赋上分类信息
|
|
|
|
|
|
|
|
//TODO 重新计算orientData的级别 有现成的方法 fact_origin_project_org_period_daily
|
|
|
|
|
|
|
|
//TODO 更新结案时间和结案状态
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|