|
@@ -6,7 +6,6 @@ import com.persagy.apm.energy.report.common.dto.QueryPjPlatformParamDTO;
|
|
|
import com.persagy.apm.energy.report.common.service.CommonService;
|
|
|
import com.persagy.apm.energy.report.common.utils.DataUtils;
|
|
|
import com.persagy.apm.energy.report.common.utils.DateUtils;
|
|
|
-import com.persagy.apm.energy.report.environment.client.EnvironmentWebClient;
|
|
|
import com.persagy.apm.energy.report.environment.model.dto.QueryEnvListByParamDTO;
|
|
|
import com.persagy.apm.energy.report.environment.model.vo.EnvAvgRateVO;
|
|
|
import com.persagy.apm.energy.report.environment.service.IEnvironmentWebService;
|
|
@@ -24,7 +23,7 @@ import java.util.stream.Collectors;
|
|
|
public class IEnvironmentWebServiceImpl implements IEnvironmentWebService {
|
|
|
|
|
|
@Resource
|
|
|
- private EnvironmentWebClient environmentWebClient;
|
|
|
+ private EnvironmentWebClientWrapper environmentWebClientWrapper;
|
|
|
@Resource
|
|
|
private CommonService commonService;
|
|
|
|
|
@@ -50,7 +49,7 @@ public class IEnvironmentWebServiceImpl implements IEnvironmentWebService {
|
|
|
paramDTO.setEnvParentTypeId("Humiture");
|
|
|
paramDTO.setStartTime(DateUtils.date2Str(reportDate, DateUtils.SDF_SECOND));
|
|
|
paramDTO.setEndTime(DateUtils.date2Str(DateUtils.getMonthOff(reportDate, 1), DateUtils.SDF_SECOND));
|
|
|
- PoemsFeignResponse<EnvAvgRateVO> response = environmentWebClient.listWorkOrderByParam(paramDTO);
|
|
|
+ PoemsFeignResponse<EnvAvgRateVO> response = environmentWebClientWrapper.listWorkOrderByParam(paramDTO);
|
|
|
EnvAvgRateVO envAvgRateVO = (EnvAvgRateVO) response.getContent();
|
|
|
if (null != envAvgRateVO) {
|
|
|
return envAvgRateVO.getAvgNum();
|