|
|
|
|
@@ -49,7 +49,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
public class DayDataServiceImpl implements DayDataService {
|
|
|
|
|
|
|
|
|
|
private final RMpHarmonicVRateReportDPOService rMpHarmonicVRateReportDPOService;
|
|
|
|
|
/* private final RMpHarmonicVRateReportDPOService rMpHarmonicVRateReportDPOService;
|
|
|
|
|
private final RMpHarmonicIMagReportDPOService rMpHarmonicIMagReportDPOService;
|
|
|
|
|
private final RMpFlickerReportDPOService rMpFlickerReportDPOService;
|
|
|
|
|
private final RMpPltReportDPOService rMpPltReportDPOService;
|
|
|
|
|
@@ -59,7 +59,7 @@ public class DayDataServiceImpl implements DayDataService {
|
|
|
|
|
private final RMpInharmonicVRateReportDPOService rMpInharmonicVRateReportDPOService;
|
|
|
|
|
private final RMpHarmonicPReportDPOService rMpHarmonicPReportDPOService;
|
|
|
|
|
private final RMpMeasurePhaseReportDPOService rMpMeasurePhaseReportDPOService;
|
|
|
|
|
private final RMpMeasureReportDPOService rMpMeasureReportDPOService;
|
|
|
|
|
private final RMpMeasureReportDPOService rMpMeasureReportDPOService;*/
|
|
|
|
|
|
|
|
|
|
//MySQL
|
|
|
|
|
private final IRStatDataFlickerDService statDataFlickerDService;
|
|
|
|
|
@@ -89,452 +89,452 @@ public class DayDataServiceImpl implements DayDataService {
|
|
|
|
|
* @Author: clam
|
|
|
|
|
* @Date: 2022/10/24
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(
|
|
|
|
|
rollbackFor = {Exception.class}
|
|
|
|
|
)
|
|
|
|
|
@Async("asyncExecutor")
|
|
|
|
|
public void dayDataJobHandler(List<String> indexLists, String startTime, String endTime) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Instant instant = null;
|
|
|
|
|
// influxDbUtils.setDbName ("pqsbase");
|
|
|
|
|
try {
|
|
|
|
|
instant = new SimpleDateFormat ("yyyy-MM-dd").parse (startTime).toInstant ( );
|
|
|
|
|
} catch (ParseException e) {
|
|
|
|
|
e.printStackTrace ( );
|
|
|
|
|
}
|
|
|
|
|
Long time= instant.toEpochMilli();
|
|
|
|
|
|
|
|
|
|
List<DataVPO> dataVPOList = new ArrayList<> ();
|
|
|
|
|
List<DataIPO> dataIPOList = new ArrayList<> ();
|
|
|
|
|
List<DataFlickerPO> dataFlickerPOList = new ArrayList<> ();
|
|
|
|
|
List<DataFlucPO> dataFlucPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmPhasicIPO> dataHarmPhasicIPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmPhasicVPO> dataHarmPhasicVPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmPowerPPO> dataHarmPowerPPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmPowerQPO> dataHarmPowerQPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmPowerSPO> dataHarmPowerSPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmRateIPO> dataHarmRateIPOList = new ArrayList<> ();
|
|
|
|
|
List<DataHarmRateVPO> dataHarmRateVPOList = new ArrayList<> ();
|
|
|
|
|
List<DataInHarmIPO> dataInHarmIPOList = new ArrayList<> ();
|
|
|
|
|
List<DataInHarmVPO> dataInHarmVPOList = new ArrayList<> ();
|
|
|
|
|
List<DataInHarmRateIPO> dataInHarmRateIPOList = new ArrayList<> ();
|
|
|
|
|
List<DataInHarmRateVPO> dataInHarmRateVPOList = new ArrayList<> ();
|
|
|
|
|
List<DataPltPO> dataPltPOList = new ArrayList<> ();
|
|
|
|
|
|
|
|
|
|
List<RMpHarmonicVRateReportD> rMpHarmonicVRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpHarmonicIMagReportD> rMpHarmonicIMagReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpFlickerReportDPO> rMpFlickerReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpPltReportDPO> rMpPltReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpHarmonicIRateReportD> rMpHarmonicIRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpInharmonicIRateReportD> rMpInharmonicIRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpInharmonicIMagReportDPO> rMpInharmonicIMagReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpInharmonicVRateReportD> rMpInharmonicVRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpHarmonicPReportDPO> rMpHarmonicPReportDPOList = new ArrayList<> ();
|
|
|
|
|
List<RMpMeasurePhaseReportD> rMpMeasurePhaseReportDPOArrayList = new ArrayList<> ();
|
|
|
|
|
List<RMpMeasureReportD> rMpMeasureReportDPOArrayList = new ArrayList<> ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i <indexLists.size () ; i++) {
|
|
|
|
|
|
|
|
|
|
String lineIndex =indexLists.get (i);
|
|
|
|
|
/*生成dayV表*/
|
|
|
|
|
List<DataVPO> dataV = getDataV(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataV)){
|
|
|
|
|
dataVPOList.addAll (dataV);
|
|
|
|
|
}
|
|
|
|
|
/*生成dayI表*/
|
|
|
|
|
List<DataIPO> dataI = getDataI(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataI)){
|
|
|
|
|
dataIPOList.addAll (dataI);
|
|
|
|
|
}
|
|
|
|
|
List<DataFlickerPO> dataFlickerPO = getDataFlicker(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataFlickerPO)){
|
|
|
|
|
dataFlickerPOList.addAll (dataFlickerPO);
|
|
|
|
|
}
|
|
|
|
|
/*生成dayFluc表*/
|
|
|
|
|
List<DataFlucPO> dataFlucPO = getDataFluc(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataFlucPO)){
|
|
|
|
|
dataFlucPOList.addAll (dataFlucPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayHarmphasicI表*/
|
|
|
|
|
List<DataHarmPhasicIPO> dataHarmphasicIPO = getDataHarmphasicI(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmphasicIPO)){
|
|
|
|
|
dataHarmPhasicIPOList.addAll (dataHarmphasicIPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayHarmphasicV表*/
|
|
|
|
|
List<DataHarmPhasicVPO> dataHarmphasicVPO = getDataHarmphasicV(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmphasicVPO)){
|
|
|
|
|
dataHarmPhasicVPOList.addAll (dataHarmphasicVPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayHarmPowerP表*/
|
|
|
|
|
List<DataHarmPowerPPO> dataHarmPowerPPO = getDataHarmPowerP(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmPowerPPO)){
|
|
|
|
|
dataHarmPowerPPOList.addAll (dataHarmPowerPPO);
|
|
|
|
|
}
|
|
|
|
|
/*生成dayHarmPowerQ表*/
|
|
|
|
|
List<DataHarmPowerQPO> dataHarmPowerQPO = getDataHarmPowerQ(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmPowerQPO)){
|
|
|
|
|
dataHarmPowerQPOList.addAll (dataHarmPowerQPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayHarmPowerS表*/
|
|
|
|
|
List<DataHarmPowerSPO> dataHarmPowers = getDataHarmPowerS(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmPowers)){
|
|
|
|
|
dataHarmPowerSPOList.addAll (dataHarmPowers);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayHarmRateI*/
|
|
|
|
|
List<DataHarmRateIPO> dataHarmRateI = getDataHarmRateI(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmRateI)){
|
|
|
|
|
dataHarmRateIPOList.addAll (dataHarmRateI);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayHarmRateV*/
|
|
|
|
|
List<DataHarmRateVPO> dataHarmRateVPO = getDataHarmRateV(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataHarmRateVPO)){
|
|
|
|
|
dataHarmRateVPOList.addAll (dataHarmRateVPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayInHarmI*/
|
|
|
|
|
List<DataInHarmIPO> dataInHarmIPO = getDataInHarmI(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataInHarmIPO)){
|
|
|
|
|
dataInHarmIPOList.addAll (dataInHarmIPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayInHarmV*/
|
|
|
|
|
List<DataInHarmVPO> dataInHarmVPO = getDataInHarmV(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataInHarmVPO)){
|
|
|
|
|
dataInHarmVPOList.addAll (dataInHarmVPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayInHarmRateI*/
|
|
|
|
|
List<DataInHarmRateIPO> dataInHarmRateIPO = getDataInHarmRateI(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataInHarmRateIPO)){
|
|
|
|
|
dataInHarmRateIPOList.addAll (dataInHarmRateIPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayInHarmRateV*/
|
|
|
|
|
List<DataInHarmRateVPO> dataInHarmRateVPO = getDataInHarmRateV(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataInHarmRateVPO)){
|
|
|
|
|
dataInHarmRateVPOList.addAll (dataInHarmRateVPO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*生成dayPlt*/
|
|
|
|
|
List<DataPltPO> dataPlt = getDataPlt(lineIndex,startTime,endTime);
|
|
|
|
|
if(!CollectionUtils.isEmpty (dataPlt)){
|
|
|
|
|
dataPltPOList.addAll (dataPlt);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*mysql数据转化 */
|
|
|
|
|
/*RMpHarmonicVRateReportDPO*/
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataV)&&!CollectionUtils.isEmpty (dataHarmRateVPO)){
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*dataVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOA = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"A",instant);
|
|
|
|
|
// Optional.ofNullable (rMpHarmonicVRateReportDPOA).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
// /*dataVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOB = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (rMpHarmonicVRateReportDPOB).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*dataVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOC = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO, "C",instant);
|
|
|
|
|
// Optional.ofNullable (rMpHarmonicVRateReportDPOC).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*dataVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOT = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (rMpHarmonicVRateReportDPOT).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
// @Override
|
|
|
|
|
// @Transactional(
|
|
|
|
|
// rollbackFor = {Exception.class}
|
|
|
|
|
// )
|
|
|
|
|
// @Async("asyncExecutor")
|
|
|
|
|
// public void dayDataJobHandler(List<String> indexLists, String startTime, String endTime) {
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Instant instant = null;
|
|
|
|
|
//// influxDbUtils.setDbName ("pqsbase");
|
|
|
|
|
// try {
|
|
|
|
|
// instant = new SimpleDateFormat ("yyyy-MM-dd").parse (startTime).toInstant ( );
|
|
|
|
|
// } catch (ParseException e) {
|
|
|
|
|
// e.printStackTrace ( );
|
|
|
|
|
// }
|
|
|
|
|
// Long time= instant.toEpochMilli();
|
|
|
|
|
//
|
|
|
|
|
// List<DataVPO> dataVPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataIPO> dataIPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataFlickerPO> dataFlickerPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataFlucPO> dataFlucPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmPhasicIPO> dataHarmPhasicIPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmPhasicVPO> dataHarmPhasicVPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmPowerPPO> dataHarmPowerPPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmPowerQPO> dataHarmPowerQPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmPowerSPO> dataHarmPowerSPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmRateIPO> dataHarmRateIPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataHarmRateVPO> dataHarmRateVPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataInHarmIPO> dataInHarmIPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataInHarmVPO> dataInHarmVPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataInHarmRateIPO> dataInHarmRateIPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataInHarmRateVPO> dataInHarmRateVPOList = new ArrayList<> ();
|
|
|
|
|
// List<DataPltPO> dataPltPOList = new ArrayList<> ();
|
|
|
|
|
//
|
|
|
|
|
// List<RMpHarmonicVRateReportD> rMpHarmonicVRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpHarmonicIMagReportD> rMpHarmonicIMagReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpFlickerReportDPO> rMpFlickerReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpPltReportDPO> rMpPltReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpHarmonicIRateReportD> rMpHarmonicIRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpInharmonicIRateReportD> rMpInharmonicIRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpInharmonicIMagReportDPO> rMpInharmonicIMagReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpInharmonicVRateReportD> rMpInharmonicVRateReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpHarmonicPReportDPO> rMpHarmonicPReportDPOList = new ArrayList<> ();
|
|
|
|
|
// List<RMpMeasurePhaseReportD> rMpMeasurePhaseReportDPOArrayList = new ArrayList<> ();
|
|
|
|
|
// List<RMpMeasureReportD> rMpMeasureReportDPOArrayList = new ArrayList<> ();
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// for (int i = 0; i <indexLists.size () ; i++) {
|
|
|
|
|
//
|
|
|
|
|
// String lineIndex =indexLists.get (i);
|
|
|
|
|
// /*生成dayV表*/
|
|
|
|
|
// List<DataVPO> dataV = getDataV(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataV)){
|
|
|
|
|
// dataVPOList.addAll (dataV);
|
|
|
|
|
// }
|
|
|
|
|
// /*RMpHarmonicIMagReportDPO*/
|
|
|
|
|
// /*生成dayI表*/
|
|
|
|
|
// List<DataIPO> dataI = getDataI(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataI)){
|
|
|
|
|
//
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*dataI.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpHarmonicIMagReportD a = packageRMpHarmonicIMagReportDPO (dataI, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
// /*dataI.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpHarmonicIMagReportD b = packageRMpHarmonicIMagReportDPO(dataI,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
// /*dataI.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpHarmonicIMagReportD c = packageRMpHarmonicIMagReportDPO(dataI,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
// /*dataI.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpHarmonicIMagReportD t = packageRMpHarmonicIMagReportDPO(dataI,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// dataIPOList.addAll (dataI);
|
|
|
|
|
// }
|
|
|
|
|
// /*生成dayFlicker表*/
|
|
|
|
|
// List<DataFlickerPO> dataFlickerPO = getDataFlicker(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataFlickerPO)){
|
|
|
|
|
// /*生成dayFlicker表*/
|
|
|
|
|
// /*dataFlickerPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpFlickerReportDPO a = packageRMpFlickerReportDPOPO (dataFlickerPO, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpFlickerReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*dataFlickerPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpFlickerReportDPO b = packageRMpFlickerReportDPOPO(dataFlickerPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpFlickerReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*dataFlickerPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpFlickerReportDPO c = packageRMpFlickerReportDPOPO(dataFlickerPO,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpFlickerReportDPOList.add (temp));
|
|
|
|
|
// /*无T项数据*/
|
|
|
|
|
//// /*dataFlickerPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpFlickerReportDPO t = packageRMpFlickerReportDPOPO(dataFlickerPO,"T");
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// dataFlickerPOList.addAll (dataFlickerPO);
|
|
|
|
|
// }
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataPlt)){
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*DataPltPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpPltReportDPO a = packageRMpPltReportDPO (dataPlt, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpPltReportDPOList.add (temp));
|
|
|
|
|
// /*DataPltPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpPltReportDPO b = packageRMpPltReportDPO(dataPlt,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpPltReportDPOList.add (temp));
|
|
|
|
|
// /*DataPltPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpPltReportDPO c = packageRMpPltReportDPO(dataPlt,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpPltReportDPOList.add (temp));
|
|
|
|
|
//// /*DataPltPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpPltReportDPO t = packageRMpPltReportDPO(dataPlt,"T");
|
|
|
|
|
// }
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmRateI)) {
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*DataHarmRateIPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpHarmonicIRateReportD a = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*DataHarmRateIPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpHarmonicIRateReportD b = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*DataHarmRateIPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpHarmonicIRateReportD c = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*DataInHarmRateIPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpHarmonicIRateReportD t = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
// /*生成dayFluc表*/
|
|
|
|
|
// List<DataFlucPO> dataFlucPO = getDataFluc(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataFlucPO)){
|
|
|
|
|
// dataFlucPOList.addAll (dataFlucPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataInHarmRateIPO)){
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*DataInHarmRateIPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpInharmonicIRateReportD a = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
// /*生成dayHarmphasicI表*/
|
|
|
|
|
// List<DataHarmPhasicIPO> dataHarmphasicIPO = getDataHarmphasicI(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmphasicIPO)){
|
|
|
|
|
// dataHarmPhasicIPOList.addAll (dataHarmphasicIPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*DataInHarmRateIPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpInharmonicIRateReportD b = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
// /*生成dayHarmphasicV表*/
|
|
|
|
|
// List<DataHarmPhasicVPO> dataHarmphasicVPO = getDataHarmphasicV(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmphasicVPO)){
|
|
|
|
|
// dataHarmPhasicVPOList.addAll (dataHarmphasicVPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*DataInHarmRateIPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpInharmonicIRateReportD c = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
// /*生成dayHarmPowerP表*/
|
|
|
|
|
// List<DataHarmPowerPPO> dataHarmPowerPPO = getDataHarmPowerP(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmPowerPPO)){
|
|
|
|
|
// dataHarmPowerPPOList.addAll (dataHarmPowerPPO);
|
|
|
|
|
// }
|
|
|
|
|
// /*生成dayHarmPowerQ表*/
|
|
|
|
|
// List<DataHarmPowerQPO> dataHarmPowerQPO = getDataHarmPowerQ(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmPowerQPO)){
|
|
|
|
|
// dataHarmPowerQPOList.addAll (dataHarmPowerQPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*DataInHarmRateIPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpInharmonicIRateReportD t = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
// /*生成dayHarmPowerS表*/
|
|
|
|
|
// List<DataHarmPowerSPO> dataHarmPowers = getDataHarmPowerS(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmPowers)){
|
|
|
|
|
// dataHarmPowerSPOList.addAll (dataHarmPowers);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayHarmRateI*/
|
|
|
|
|
// List<DataHarmRateIPO> dataHarmRateI = getDataHarmRateI(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmRateI)){
|
|
|
|
|
// dataHarmRateIPOList.addAll (dataHarmRateI);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayHarmRateV*/
|
|
|
|
|
// List<DataHarmRateVPO> dataHarmRateVPO = getDataHarmRateV(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmRateVPO)){
|
|
|
|
|
// dataHarmRateVPOList.addAll (dataHarmRateVPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayInHarmI*/
|
|
|
|
|
// List<DataInHarmIPO> dataInHarmIPO = getDataInHarmI(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataInHarmIPO)){
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*dataInHarmIPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpInharmonicIMagReportDPO a = packageRMpInharmonicIMagReportDPO(dataInHarmIPO, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmIPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpInharmonicIMagReportDPO b = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmIPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpInharmonicIMagReportDPO c = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmIPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpInharmonicIMagReportDPO t = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// dataInHarmIPOList.addAll (dataInHarmIPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayInHarmV*/
|
|
|
|
|
// List<DataInHarmVPO> dataInHarmVPO = getDataInHarmV(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataInHarmVPO)){
|
|
|
|
|
// dataInHarmVPOList.addAll (dataInHarmVPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayInHarmRateI*/
|
|
|
|
|
// List<DataInHarmRateIPO> dataInHarmRateIPO = getDataInHarmRateI(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataInHarmRateIPO)){
|
|
|
|
|
// dataInHarmRateIPOList.addAll (dataInHarmRateIPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayInHarmRateV*/
|
|
|
|
|
// List<DataInHarmRateVPO> dataInHarmRateVPO = getDataInHarmRateV(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataInHarmRateVPO)){
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpInharmonicVRateReportD a = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpInharmonicVRateReportD b = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpInharmonicVRateReportD c = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpInharmonicVRateReportD t = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// dataInHarmRateVPOList.addAll (dataInHarmRateVPO);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataHarmPowerPPO)&&!CollectionUtils.isEmpty (dataHarmPowerQPO)){
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpHarmonicPReportDPO a = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO, "A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpHarmonicPReportDPO b = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpHarmonicPReportDPO c = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpHarmonicPReportDPO t = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// /*生成dayPlt*/
|
|
|
|
|
// List<DataPltPO> dataPlt = getDataPlt(lineIndex,startTime,endTime);
|
|
|
|
|
// if(!CollectionUtils.isEmpty (dataPlt)){
|
|
|
|
|
// dataPltPOList.addAll (dataPlt);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /*mysql数据转化 */
|
|
|
|
|
// /*RMpHarmonicVRateReportDPO*/
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataV)&&!CollectionUtils.isEmpty (dataHarmRateVPO)){
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*dataVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOA = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"A",instant);
|
|
|
|
|
//// Optional.ofNullable (rMpHarmonicVRateReportDPOA).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//// /*dataVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOB = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (rMpHarmonicVRateReportDPOB).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*dataVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOC = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO, "C",instant);
|
|
|
|
|
//// Optional.ofNullable (rMpHarmonicVRateReportDPOC).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*dataVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpHarmonicVRateReportD rMpHarmonicVRateReportDPOT = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (rMpHarmonicVRateReportDPOT).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// /*RMpHarmonicIMagReportDPO*/
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataI)){
|
|
|
|
|
////
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*dataI.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpHarmonicIMagReportD a = packageRMpHarmonicIMagReportDPO (dataI, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//// /*dataI.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpHarmonicIMagReportD b = packageRMpHarmonicIMagReportDPO(dataI,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//// /*dataI.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpHarmonicIMagReportD c = packageRMpHarmonicIMagReportDPO(dataI,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//// /*dataI.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpHarmonicIMagReportD t = packageRMpHarmonicIMagReportDPO(dataI,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// /*生成dayFlicker表*/
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataFlickerPO)){
|
|
|
|
|
//// /*生成dayFlicker表*/
|
|
|
|
|
//// /*dataFlickerPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpFlickerReportDPO a = packageRMpFlickerReportDPOPO (dataFlickerPO, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpFlickerReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*dataFlickerPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpFlickerReportDPO b = packageRMpFlickerReportDPOPO(dataFlickerPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpFlickerReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*dataFlickerPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpFlickerReportDPO c = packageRMpFlickerReportDPOPO(dataFlickerPO,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpFlickerReportDPOList.add (temp));
|
|
|
|
|
//// /*无T项数据*/
|
|
|
|
|
////// /*dataFlickerPO.getPhaseType ()="T"数据*/
|
|
|
|
|
////// RMpFlickerReportDPO t = packageRMpFlickerReportDPOPO(dataFlickerPO,"T");
|
|
|
|
|
////
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataPlt)){
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*DataPltPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpPltReportDPO a = packageRMpPltReportDPO (dataPlt, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpPltReportDPOList.add (temp));
|
|
|
|
|
//// /*DataPltPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpPltReportDPO b = packageRMpPltReportDPO(dataPlt,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpPltReportDPOList.add (temp));
|
|
|
|
|
//// /*DataPltPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpPltReportDPO c = packageRMpPltReportDPO(dataPlt,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpPltReportDPOList.add (temp));
|
|
|
|
|
////// /*DataPltPO.getPhaseType ()="T"数据*/
|
|
|
|
|
////// RMpPltReportDPO t = packageRMpPltReportDPO(dataPlt,"T");
|
|
|
|
|
//// }
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataHarmRateI)) {
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*DataHarmRateIPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpHarmonicIRateReportD a = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*DataHarmRateIPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpHarmonicIRateReportD b = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*DataHarmRateIPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpHarmonicIRateReportD c = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*DataInHarmRateIPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpHarmonicIRateReportD t = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp));
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataInHarmRateIPO)){
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*DataInHarmRateIPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpInharmonicIRateReportD a = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*DataInHarmRateIPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpInharmonicIRateReportD b = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*DataInHarmRateIPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpInharmonicIRateReportD c = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// /*DataInHarmRateIPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpInharmonicIRateReportD t = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataInHarmIPO)){
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*dataInHarmIPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpInharmonicIMagReportDPO a = packageRMpInharmonicIMagReportDPO(dataInHarmIPO, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmIPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpInharmonicIMagReportDPO b = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmIPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpInharmonicIMagReportDPO c = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmIPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpInharmonicIMagReportDPO t = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataInHarmRateVPO)){
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpInharmonicVRateReportD a = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpInharmonicVRateReportD b = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpInharmonicVRateReportD c = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpInharmonicVRateReportD t = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if(!CollectionUtils.isEmpty (dataHarmPowerPPO)&&!CollectionUtils.isEmpty (dataHarmPowerQPO)){
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpHarmonicPReportDPO a = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO, "A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpHarmonicPReportDPO b = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpHarmonicPReportDPO c = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpHarmonicPReportDPO t = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty (dataV) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataI) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataHarmPowerPPO) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataHarmPowers) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataHarmPowerQPO)) {
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
//// RMpMeasurePhaseReportD a = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"A",instant);
|
|
|
|
|
//// Optional.ofNullable (a).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
//// RMpMeasurePhaseReportD b = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"B",instant);
|
|
|
|
|
//// Optional.ofNullable (b).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
//// RMpMeasurePhaseReportD c = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"C",instant);
|
|
|
|
|
//// Optional.ofNullable (c).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
//// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
//// RMpMeasurePhaseReportD t = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// /* todo
|
|
|
|
|
//// * r_mp_measure_report_d
|
|
|
|
|
//// * */
|
|
|
|
|
//// if (!CollectionUtils.isEmpty (dataV) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataI) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataHarmPowerPPO) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataHarmPowers) &&
|
|
|
|
|
//// !CollectionUtils.isEmpty (dataHarmPowerQPO)) {
|
|
|
|
|
//// /*转成mysql对应po*/
|
|
|
|
|
//// /*稳态监测点非谐波不带相位指标即是T项指标*/
|
|
|
|
|
//// RMpMeasureReportD t = packageRMpMeasureReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"T",instant);
|
|
|
|
|
//// Optional.ofNullable (t).ifPresent (temp ->rMpMeasureReportDPOArrayList.add (temp));
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty (dataV) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataI) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataHarmPowerPPO) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataHarmPowers) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataHarmPowerQPO)) {
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/
|
|
|
|
|
// RMpMeasurePhaseReportD a = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"A",instant);
|
|
|
|
|
// Optional.ofNullable (a).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/
|
|
|
|
|
// RMpMeasurePhaseReportD b = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"B",instant);
|
|
|
|
|
// Optional.ofNullable (b).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/
|
|
|
|
|
// RMpMeasurePhaseReportD c = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"C",instant);
|
|
|
|
|
// Optional.ofNullable (c).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/
|
|
|
|
|
// RMpMeasurePhaseReportD t = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// /* todo
|
|
|
|
|
// * r_mp_measure_report_d
|
|
|
|
|
// * */
|
|
|
|
|
// if (!CollectionUtils.isEmpty (dataV) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataI) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataHarmPowerPPO) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataHarmPowers) &&
|
|
|
|
|
// !CollectionUtils.isEmpty (dataHarmPowerQPO)) {
|
|
|
|
|
// /*转成mysql对应po*/
|
|
|
|
|
// /*稳态监测点非谐波不带相位指标即是T项指标*/
|
|
|
|
|
// RMpMeasureReportD t = packageRMpMeasureReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"T",instant);
|
|
|
|
|
// Optional.ofNullable (t).ifPresent (temp ->rMpMeasureReportDPOArrayList.add (temp));
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*插入mysql*/
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpHarmonicVRateReportDPOList)){
|
|
|
|
|
// rMpHarmonicVRateReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicVRateReportDPOList, 50);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpHarmonicIMagReportDPOList)){
|
|
|
|
|
// rMpHarmonicIMagReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicIMagReportDPOList, 50);
|
|
|
|
|
//
|
|
|
|
|
// /*插入mysql*/
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpHarmonicVRateReportDPOList)){
|
|
|
|
|
//// rMpHarmonicVRateReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicVRateReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpHarmonicIMagReportDPOList)){
|
|
|
|
|
//// rMpHarmonicIMagReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicIMagReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpFlickerReportDPOList)){
|
|
|
|
|
//// rMpFlickerReportDPOService.saveOrUpdateBatchByMultiId (rMpFlickerReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpPltReportDPOList)){
|
|
|
|
|
//// rMpPltReportDPOService.saveOrUpdateBatchByMultiId (rMpPltReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpHarmonicIRateReportDPOList)){
|
|
|
|
|
//// rMpHarmonicIRateReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicIRateReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpInharmonicIRateReportDPOList)){
|
|
|
|
|
//// rMpInharmonicIRateReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicIRateReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpInharmonicIMagReportDPOList)){
|
|
|
|
|
//// rMpInharmonicIMagReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicIMagReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpInharmonicVRateReportDPOList)){
|
|
|
|
|
//// rMpInharmonicVRateReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicVRateReportDPOList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpMeasurePhaseReportDPOArrayList)){
|
|
|
|
|
//// rMpMeasurePhaseReportDPOService.saveOrUpdateBatchByMultiId (rMpMeasurePhaseReportDPOArrayList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
//// if (!CollectionUtils.isEmpty(rMpMeasureReportDPOArrayList)){
|
|
|
|
|
//// rMpMeasureReportDPOService.saveOrUpdateBatchByMultiId (rMpMeasureReportDPOArrayList, 50);
|
|
|
|
|
//// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataVPOList)){
|
|
|
|
|
// insertDayV(dataVPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpFlickerReportDPOList)){
|
|
|
|
|
// rMpFlickerReportDPOService.saveOrUpdateBatchByMultiId (rMpFlickerReportDPOList, 50);
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataIPOList)){
|
|
|
|
|
// insertDayI(dataIPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataFlickerPOList)){
|
|
|
|
|
// insertDayFlicker(dataFlickerPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataFlucPOList)){
|
|
|
|
|
// insertDayFluc(dataFlucPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmPhasicIPOList)){
|
|
|
|
|
// insertDayHarmphasicI(dataHarmPhasicIPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmPhasicVPOList)){
|
|
|
|
|
// insertDayHarmphasicV(dataHarmPhasicVPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmPowerPPOList)){
|
|
|
|
|
// insertDayHarmPowerP(dataHarmPowerPPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmPowerQPOList)){
|
|
|
|
|
// insertDayHarmPowerQ(dataHarmPowerQPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmPowerSPOList)){
|
|
|
|
|
// insertDayHarmPowerS(dataHarmPowerSPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmRateIPOList)){
|
|
|
|
|
// insertDayHarmRateI(dataHarmRateIPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataHarmRateVPOList)){
|
|
|
|
|
// insertDayHarmRateV(dataHarmRateVPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataInHarmIPOList)){
|
|
|
|
|
// insertDayInHarmI(dataInHarmIPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataInHarmVPOList)){
|
|
|
|
|
// insertDayInHarmV(dataInHarmVPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataInHarmRateIPOList)){
|
|
|
|
|
// insertDayInHarmRateI(dataInHarmRateIPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataInHarmRateVPOList)){
|
|
|
|
|
// insertDayInHarmRateV(dataInHarmRateVPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(dataPltPOList)){
|
|
|
|
|
// insertDayPlt(dataPltPOList,time);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpPltReportDPOList)){
|
|
|
|
|
// rMpPltReportDPOService.saveOrUpdateBatchByMultiId (rMpPltReportDPOList, 50);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpHarmonicIRateReportDPOList)){
|
|
|
|
|
// rMpHarmonicIRateReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicIRateReportDPOList, 50);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpInharmonicIRateReportDPOList)){
|
|
|
|
|
// rMpInharmonicIRateReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicIRateReportDPOList, 50);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpInharmonicIMagReportDPOList)){
|
|
|
|
|
// rMpInharmonicIMagReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicIMagReportDPOList, 50);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpInharmonicVRateReportDPOList)){
|
|
|
|
|
// rMpInharmonicVRateReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicVRateReportDPOList, 50);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpMeasurePhaseReportDPOArrayList)){
|
|
|
|
|
// rMpMeasurePhaseReportDPOService.saveOrUpdateBatchByMultiId (rMpMeasurePhaseReportDPOArrayList, 50);
|
|
|
|
|
// }
|
|
|
|
|
// if (!CollectionUtils.isEmpty(rMpMeasureReportDPOArrayList)){
|
|
|
|
|
// rMpMeasureReportDPOService.saveOrUpdateBatchByMultiId (rMpMeasureReportDPOArrayList, 50);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataVPOList)){
|
|
|
|
|
insertDayV(dataVPOList,time);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataIPOList)){
|
|
|
|
|
insertDayI(dataIPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataFlickerPOList)){
|
|
|
|
|
insertDayFlicker(dataFlickerPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataFlucPOList)){
|
|
|
|
|
insertDayFluc(dataFlucPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmPhasicIPOList)){
|
|
|
|
|
insertDayHarmphasicI(dataHarmPhasicIPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmPhasicVPOList)){
|
|
|
|
|
insertDayHarmphasicV(dataHarmPhasicVPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmPowerPPOList)){
|
|
|
|
|
insertDayHarmPowerP(dataHarmPowerPPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmPowerQPOList)){
|
|
|
|
|
insertDayHarmPowerQ(dataHarmPowerQPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmPowerSPOList)){
|
|
|
|
|
insertDayHarmPowerS(dataHarmPowerSPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmRateIPOList)){
|
|
|
|
|
insertDayHarmRateI(dataHarmRateIPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataHarmRateVPOList)){
|
|
|
|
|
insertDayHarmRateV(dataHarmRateVPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataInHarmIPOList)){
|
|
|
|
|
insertDayInHarmI(dataInHarmIPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataInHarmVPOList)){
|
|
|
|
|
insertDayInHarmV(dataInHarmVPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataInHarmRateIPOList)){
|
|
|
|
|
insertDayInHarmRateI(dataInHarmRateIPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataInHarmRateVPOList)){
|
|
|
|
|
insertDayInHarmRateV(dataInHarmRateVPOList,time);
|
|
|
|
|
}
|
|
|
|
|
if (!CollectionUtils.isEmpty(dataPltPOList)){
|
|
|
|
|
insertDayPlt(dataPltPOList,time);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info(LocalDateTime.now()+"dayDataJobHandler执行完成!");
|
|
|
|
|
}
|
|
|
|
|
// log.info(LocalDateTime.now()+"dayDataJobHandler执行完成!");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(rollbackFor = {Exception.class})
|
|
|
|
|
@@ -563,6 +563,7 @@ public class DayDataServiceImpl implements DayDataService {
|
|
|
|
|
List<RStatDataInharmVDPO> dataInHarmVPOList = new ArrayList<> ();
|
|
|
|
|
List<RStatDataPltDPO> dataPltPOList = new ArrayList<> ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (String lineIndex : indexLists) {
|
|
|
|
|
|
|
|
|
|
/*生成dayV表*/
|
|
|
|
|
|