|
|
@ -34,6 +34,7 @@ import com.epmet.dataaggre.excel.GridLivelyExcel; |
|
|
|
import com.epmet.dataaggre.service.commonservice.AreaCodeService; |
|
|
|
import com.epmet.dataaggre.service.datastats.DataStatsService; |
|
|
|
import com.epmet.dataaggre.service.epmetuser.EpmetUserService; |
|
|
|
import com.epmet.dataaggre.service.evaluationindex.EvaluationIndexService; |
|
|
|
import com.epmet.dataaggre.service.govorg.GovOrgService; |
|
|
|
import com.epmet.dataaggre.service.opercrm.CustomerRelation; |
|
|
|
import com.epmet.dto.result.UploadImgResultDTO; |
|
|
@ -88,6 +89,8 @@ public class GovOrgServiceImpl implements GovOrgService { |
|
|
|
private DataStatsService dataStatsService; |
|
|
|
@Autowired |
|
|
|
private OssFeignClient ossFeignClient; |
|
|
|
@Autowired |
|
|
|
private EvaluationIndexService evaluationIndexService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @param staffId |
|
|
@ -694,8 +697,10 @@ public class GovOrgServiceImpl implements GovOrgService { |
|
|
|
List<GridDateIdResultDTO> workList = epmetUserService.getGridDateRoutineWorkList(formDTO); |
|
|
|
/*//3.查询直属下级组织下网格在查询时间段内存在上报事件(直接立项)数的网格,一天一条
|
|
|
|
List<GridDateIdResultDTO> projectList = dataStatsService.getGridDateProjectIncrList(formDTO);*/ |
|
|
|
//3.查询直属下级组织下网格在查询时间段内存在创建项目记录,一个网格一天一条
|
|
|
|
List<GridDateIdResultDTO> projectList = dataStatsService.getGridProejctToProjectMain(formDTO); |
|
|
|
/*//3.查询直属下级组织下网格在查询时间段内存在创建项目记录,一个网格一天一条
|
|
|
|
List<GridDateIdResultDTO> projectList = dataStatsService.getGridProejctToProjectMain(formDTO);*/ |
|
|
|
//3.查询直属下级组织下网格在查询时间段内存在创建项目记录,一个网格一天一条[改查screen_project_data表,因为平阴三个街道和小程序的数据都在这个表有]
|
|
|
|
List<GridDateIdResultDTO> projectList = evaluationIndexService.getGridProejctToProjectMain(formDTO); |
|
|
|
//4.汇总数据,一个网格一天只记录一条数据,这条数据可能是例行工作的也可能是上报事件的,也可能某一天两个数都有,但只记录一条
|
|
|
|
Set<String> map = workList.stream().map(o -> o.getGridId() + o.getDateId()).collect(Collectors.toSet()); |
|
|
|
projectList.stream().filter(pro -> !map.contains(pro.getGridId() + pro.getDateId())).forEach(p -> workList.add(p)); |
|
|
|