influxDb的EntData实体依赖版本更换
This commit is contained in:
@@ -270,14 +270,15 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
|
||||
commonQueryParam.setTableName(getTableNameByClassId(epdPqd.getClassId()));
|
||||
commonQueryParam.setColumnName(epdPqd.getName()+ (param.getFrequency() == null ? "":"_"+param.getFrequency()));
|
||||
commonQueryParam.setPhasic(epdPqd.getPhase());
|
||||
commonQueryParam.setStartTime(commonStatisticalQueryParam.getStartTime());
|
||||
commonQueryParam.setEndTime(commonStatisticalQueryParam.getEndTime());
|
||||
//commonQueryParam.setStartTime(commonStatisticalQueryParam.getStartTime());
|
||||
//commonQueryParam.setEndTime(commonStatisticalQueryParam.getEndTime());
|
||||
commonQueryParam.setDataType(commonStatisticalQueryParam.getValueType());
|
||||
commonQueryParam.setProcess(data1.get(0).getProcess()+"");
|
||||
commonQueryParam.setClDid(getClDidByLineId(temp.getLineId()));
|
||||
return commonQueryParam;
|
||||
}).collect(Collectors.toList());
|
||||
List<StatisticalDataDTO> deviceRtData = commonService.getDeviceRtDataByTime(commonQueryParams);
|
||||
//List<StatisticalDataDTO> deviceRtData = commonService.getDeviceRtDataByTime(commonQueryParams);
|
||||
List<StatisticalDataDTO> deviceRtData = commonService.getDeviceRtData(commonQueryParams);
|
||||
List<ThdDataVO> collect1 = deviceRtData.stream().map(temp -> {
|
||||
ThdDataVO vo = new ThdDataVO();
|
||||
vo.setLineId(temp.getLineId());
|
||||
|
||||
@@ -258,34 +258,33 @@ public class PortableOfflLogServiceImpl extends ServiceImpl<PortableOfflLogMappe
|
||||
csEventPO.setProcess(data1.get(0).getProcess());
|
||||
csEventPOS.add(csEventPO);
|
||||
EntData entData = new EntData();
|
||||
entData.setLineId(uploadDataParam.getLineId());
|
||||
entData.setTime(newTaglogbuffer.getStart().toInstant(ZoneOffset.UTC));
|
||||
for(NewBodyTaglogbuffer newBodyTaglogbuffer : newTaglogbuffer.getNewBodyTaglogbuffers()){
|
||||
if(newBodyTaglogbuffer.getParaCode() == 0) entData.setEvtVvadepth(newBodyTaglogbuffer.getParaValue()/65536D);
|
||||
if(newBodyTaglogbuffer.getParaCode() == 1) entData.setEvtVvatm(newBodyTaglogbuffer.getParaValue()/65536D);
|
||||
if(newBodyTaglogbuffer.getParaCode() == 0) entData.setEvtParamVVaDepth(newBodyTaglogbuffer.getParaValue()/65536D);
|
||||
if(newBodyTaglogbuffer.getParaCode() == 1) entData.setEvtParamTm(newBodyTaglogbuffer.getParaValue()/65536D);
|
||||
if(newBodyTaglogbuffer.getParaCode() == 5) {
|
||||
int code = newBodyTaglogbuffer.getParaValue()/65536;
|
||||
switch (code){
|
||||
case 0:
|
||||
entData.setEvtVvaphase("A");
|
||||
entData.setEvtParamPhase("A");
|
||||
break;
|
||||
case 1:
|
||||
entData.setEvtVvaphase("B");
|
||||
entData.setEvtParamPhase("B");
|
||||
break;
|
||||
case 2:
|
||||
entData.setEvtVvaphase("C");
|
||||
entData.setEvtParamPhase("C");
|
||||
break;
|
||||
case 3:
|
||||
entData.setEvtVvaphase("AB");
|
||||
entData.setEvtParamPhase("AB");
|
||||
break;
|
||||
case 4:
|
||||
entData.setEvtVvaphase("BC");
|
||||
entData.setEvtParamPhase("BC");
|
||||
break;
|
||||
case 5:
|
||||
entData.setEvtVvaphase("CA");
|
||||
entData.setEvtParamPhase("CA");
|
||||
break;
|
||||
case 6:
|
||||
entData.setEvtVvaphase("ABC");
|
||||
entData.setEvtParamPhase("ABC");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user