|
@ -6,7 +6,6 @@ import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.dto.org.GridInfoDTO; |
|
|
import com.epmet.dto.org.GridInfoDTO; |
|
|
import com.epmet.dto.screen.form.ProjectSourceMapFormDTO; |
|
|
import com.epmet.dto.screen.form.ProjectSourceMapFormDTO; |
|
|
import com.epmet.dto.screen.form.ScreenCentralZoneDataFormDTO; |
|
|
import com.epmet.dto.screen.form.ScreenCentralZoneDataFormDTO; |
|
|
import com.epmet.dto.screen.result.DifficultyIfExistedResultDTO; |
|
|
|
|
|
import com.epmet.entity.evaluationindex.screen.ScreenDifficultyDataEntity; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenDifficultyDataEntity; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenDifficultyImgDataEntity; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenDifficultyImgDataEntity; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenPartyUserRankDataEntity; |
|
|
import com.epmet.entity.evaluationindex.screen.ScreenPartyUserRankDataEntity; |
|
@ -135,15 +134,17 @@ public class ScreenGrassrootsGovernDataAbsorptionServiceImpl implements ScreenGr |
|
|
**/ |
|
|
**/ |
|
|
@Override |
|
|
@Override |
|
|
public void difficultyDataHub(ScreenCentralZoneDataFormDTO param) { |
|
|
public void difficultyDataHub(ScreenCentralZoneDataFormDTO param) { |
|
|
//验证是否存在
|
|
|
|
|
|
DifficultyIfExistedResultDTO existedMap = screenDifficultyDataService.selectExistedInfo(param.getCustomerId()); |
|
|
|
|
|
//查询数据
|
|
|
//查询数据
|
|
|
List<ScreenDifficultyDataEntity> difficulties = factOriginProjectMainDailyService.getDifficultyBaseInfo(param.getCustomerId(),existedMap.getClosedIds()); |
|
|
List<ScreenDifficultyDataEntity> difficulties = factOriginProjectMainDailyService.getDifficultyBaseInfo(param.getCustomerId(),screenDifficultyDataService.selectExistedInfo(param.getCustomerId())); |
|
|
if(CollectionUtils.isEmpty(difficulties)) return; |
|
|
if(CollectionUtils.isEmpty(difficulties)) return; |
|
|
List<String> projectIds = difficulties.stream().map(ScreenDifficultyDataEntity :: getEventId).distinct().collect(Collectors.toList()); |
|
|
List<String> projectIds = difficulties.stream().map(ScreenDifficultyDataEntity :: getEventId).distinct().collect(Collectors.toList()); |
|
|
//最近一次操作
|
|
|
//最近一次操作
|
|
|
Map<String,String> latestOperationMap = projectProcessService.selectLatestOperation(projectIds,param.getCustomerId()); |
|
|
Map<String,String> latestOperationMap = projectProcessService.getLatestOperation(projectIds,param.getCustomerId()); |
|
|
|
|
|
//标题
|
|
|
|
|
|
Map<String,String> titleMap = projectProcessService.getProjectTitle(projectIds,param.getCustomerId()); |
|
|
boolean isOperationNull = CollectionUtils.isEmpty(latestOperationMap) ? true : false; |
|
|
boolean isOperationNull = CollectionUtils.isEmpty(latestOperationMap) ? true : false; |
|
|
|
|
|
boolean isTitleNull = CollectionUtils.isEmpty(titleMap) ? true : false; |
|
|
//图片
|
|
|
//图片
|
|
|
List<ProjectSourceMapFormDTO> projectSourceMap = factOriginProjectMainDailyService.getNewProject(param.getCustomerId(),projectIds); |
|
|
List<ProjectSourceMapFormDTO> projectSourceMap = factOriginProjectMainDailyService.getNewProject(param.getCustomerId(),projectIds); |
|
|
|
|
|
|
|
@ -163,6 +164,9 @@ public class ScreenGrassrootsGovernDataAbsorptionServiceImpl implements ScreenGr |
|
|
if(!isOperationNull){ |
|
|
if(!isOperationNull){ |
|
|
diff.setLatestOperateDesc(latestOperationMap.get(diff.getEventId())); |
|
|
diff.setLatestOperateDesc(latestOperationMap.get(diff.getEventId())); |
|
|
} |
|
|
} |
|
|
|
|
|
if(!isTitleNull){ |
|
|
|
|
|
diff.setEventTitle(titleMap.get(diff.getEventId())); |
|
|
|
|
|
} |
|
|
diff.setDataEndTime(DateUtils.getBeforeNDay(NumConstant.ONE)); |
|
|
diff.setDataEndTime(DateUtils.getBeforeNDay(NumConstant.ONE)); |
|
|
}); |
|
|
}); |
|
|
List<ScreenDifficultyImgDataEntity> imgList = new LinkedList<>(); |
|
|
List<ScreenDifficultyImgDataEntity> imgList = new LinkedList<>(); |
|
|