|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.datareport.service.evaluationindex.screen.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.AppClientConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
@ -11,6 +12,7 @@ import com.epmet.datareport.dao.evaluationindex.screen.ScreenEventImgDataDao; |
|
|
|
import com.epmet.datareport.dao.evaluationindex.screen.ScreenProjectCategoryOrgDailyDao; |
|
|
|
import com.epmet.datareport.dao.evaluationindex.screen.ScreenProjectDataDao; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.ScreenProjectService; |
|
|
|
import com.epmet.dto.UserDTO; |
|
|
|
import com.epmet.dto.form.CustomerAgencyUserRoleFormDTO; |
|
|
|
import com.epmet.dto.form.screen.CategoryAnalysisFormDTO; |
|
|
|
import com.epmet.dto.form.screen.ColorProjectTotalFormDTO; |
|
|
@ -23,7 +25,6 @@ import com.epmet.evaluationindex.screen.dto.result.ProjectDetailResultDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.ScreenProjectDetailResultDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.ScreenProjectDistributionResultDTO; |
|
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
|
import com.epmet.feign.OperCrmOpenFeignClient; |
|
|
|
import com.epmet.project.CustomerProjectCategoryDTO; |
|
|
|
import com.epmet.project.dto.form.CategoryTopAppealFormDTO; |
|
|
|
import com.epmet.project.dto.result.CategoryTopAppealResultDTO; |
|
|
@ -60,8 +61,6 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryOrgDailyDao screenProjectCategoryOrgDailyDao; |
|
|
|
@Autowired |
|
|
|
private OperCrmOpenFeignClient operCrmOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetUserOpenFeignClient userOpenFeignClient; |
|
|
|
|
|
|
|
/** |
|
|
@ -85,6 +84,7 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
/** |
|
|
|
* @Description 中央区事件分析-项目分布 |
|
|
|
* 【2021-06-03 修改查询红黄绿事件事件范围为一个月】 |
|
|
|
* 【2021-09-09】大屏新增普通事件列表:首次查询平阴整个客户下,近30天内的项目,展示分类名称(前端截取第一个-之前的文字)、颜色等级、项目标题。点击8个街道,联动。 |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @Author liushaowen |
|
|
@ -117,11 +117,15 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
CustomerAgencyUserRoleFormDTO userRoleFormDTO = new CustomerAgencyUserRoleFormDTO(); |
|
|
|
userRoleFormDTO.setCustomerId(formDTO.getCustomerId()); |
|
|
|
userRoleFormDTO.setStaffId(item.getReportUserId()); |
|
|
|
//只有工作端的用户才调用此接口
|
|
|
|
Result<UserDTO> userDTOResult = userOpenFeignClient.queryUserClient(item.getReportUserId()); |
|
|
|
if (userDTOResult.success() && null != userDTOResult.getData() && AppClientConstant.APP_GOV.equals(userDTOResult.getData().getFromApp())) { |
|
|
|
Map<String, String> staffRoleMap = CustomerStaffRedis.getStaffRoleMap(formDTO.getCustomerId(), item.getReportUserId()); |
|
|
|
if (!CollectionUtils.isEmpty(staffRoleMap)) { |
|
|
|
item.setReportUserRoleSet(staffRoleMap.keySet()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//项目图片
|
|
|
|
List<String> imgList = screenProjectDataDao.selectProjectImgs(formDTO.getProjectId(),item.getCustomerId()); |
|
|
|