|
|
@ -17,6 +17,7 @@ import com.hnac.hzinfo.datasearch.analyse.IAnalyseDataSearchClient; |
|
|
|
import com.hnac.hzinfo.datasearch.analyse.domain.AnalyzeDataCondition; |
|
|
|
import com.hnac.hzinfo.datasearch.analyse.domain.AnalyzeDataCondition; |
|
|
|
import com.hnac.hzinfo.datasearch.analyse.domain.AnalyzeDataList; |
|
|
|
import com.hnac.hzinfo.datasearch.analyse.domain.AnalyzeDataList; |
|
|
|
import com.hnac.hzinfo.datasearch.analyse.domain.FieldsData; |
|
|
|
import com.hnac.hzinfo.datasearch.analyse.domain.FieldsData; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.sdk.core.response.DataResultCode; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.HzPage; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.HzPage; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.Result; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.Result; |
|
|
|
import com.hnac.hzinfo.sdk.v5.analyse.AnalyseDataHandlerClient; |
|
|
|
import com.hnac.hzinfo.sdk.v5.analyse.AnalyseDataHandlerClient; |
|
|
@ -66,6 +67,9 @@ public class ImsAnalyseExampleServiceImpl extends BaseServiceImpl<ImsAnalyseExam |
|
|
|
//设备ID:分析实例编码
|
|
|
|
//设备ID:分析实例编码
|
|
|
|
R<HzPage<AnalyzeDataList>> analyzeDataByAnalyzeCode = searchClient.getAnalyzeDataByAnalyzeCode(analyzeDataCondition); |
|
|
|
R<HzPage<AnalyzeDataList>> analyzeDataByAnalyzeCode = searchClient.getAnalyzeDataByAnalyzeCode(analyzeDataCondition); |
|
|
|
if(!analyzeDataByAnalyzeCode.isSuccess()) { |
|
|
|
if(!analyzeDataByAnalyzeCode.isSuccess()) { |
|
|
|
|
|
|
|
if(DataResultCode.ANALYZE_INSTANCE_UNDEFINE.getCode()==analyzeDataByAnalyzeCode.getCode()){ |
|
|
|
|
|
|
|
throw new ServiceException("找不到对应的分析实例,请检查好配置后重试!"); |
|
|
|
|
|
|
|
} |
|
|
|
throw new ServiceException("设备数据查询异常,请检查好配置后重试!"); |
|
|
|
throw new ServiceException("设备数据查询异常,请检查好配置后重试!"); |
|
|
|
} |
|
|
|
} |
|
|
|
return analyzeDataByAnalyzeCode; |
|
|
|
return analyzeDataByAnalyzeCode; |
|
|
|