|
@ -1,5 +1,6 @@ |
|
|
package com.epmet.datareport.service.project.impl; |
|
|
package com.epmet.datareport.service.project.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
@ -26,8 +27,11 @@ import com.epmet.project.dto.form.DifficultyRankFormDTO; |
|
|
import com.epmet.project.dto.form.ProjectIncrTrendFormDTO; |
|
|
import com.epmet.project.dto.form.ProjectIncrTrendFormDTO; |
|
|
import com.epmet.project.dto.result.ProjectDetailResultDTO; |
|
|
import com.epmet.project.dto.result.ProjectDetailResultDTO; |
|
|
import com.epmet.project.dto.result.*; |
|
|
import com.epmet.project.dto.result.*; |
|
|
|
|
|
import com.epmet.resi.group.dto.topic.ResiTopicDTO; |
|
|
|
|
|
import com.epmet.resi.group.feign.ResiGroupOpenFeignClient; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
@ -58,7 +62,8 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private ResiGroupOpenFeignClient resiGroupOpenFeignClient; |
|
|
/** |
|
|
/** |
|
|
* @Author sun |
|
|
* @Author sun |
|
|
* @Description 数据-项目-获取汇总数据 |
|
|
* @Description 数据-项目-获取汇总数据 |
|
@ -223,6 +228,14 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
List<DepartmentNameListResultDTO> departmentNameListResultDTOS = ConvertUtils.sourceToTarget(data.getDepartmentList(), DepartmentNameListResultDTO.class); |
|
|
List<DepartmentNameListResultDTO> departmentNameListResultDTOS = ConvertUtils.sourceToTarget(data.getDepartmentList(), DepartmentNameListResultDTO.class); |
|
|
projectDetailResultDTO.setDepartmentList(departmentNameListResultDTOS); |
|
|
projectDetailResultDTO.setDepartmentList(departmentNameListResultDTOS); |
|
|
projectDetailResultDTO.setDepartmentNameList(data.getDepartmentNameList()); |
|
|
projectDetailResultDTO.setDepartmentNameList(data.getDepartmentNameList()); |
|
|
|
|
|
//返回话题内容
|
|
|
|
|
|
if(result.success()&&null!=result.getData()){ |
|
|
|
|
|
Result<ResiTopicDTO> topicResult = resiGroupOpenFeignClient.queryTopicInfoByIssueId(result.getData().getIssueId()); |
|
|
|
|
|
log.info(String.format("根据issueId:%s查询话题详情返参:%s", result.getData().getIssueId(), JSON.toJSONString(topicResult))); |
|
|
|
|
|
if (topicResult.success() && null != topicResult.getData() && StringUtils.isNotBlank(topicResult.getData().getTopicContent())) { |
|
|
|
|
|
projectDetailResultDTO.setTopicContent(topicResult.getData().getTopicContent()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
return projectDetailResultDTO; |
|
|
return projectDetailResultDTO; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|