|
@@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.jiayue.ipfcst.client.dto.FileParsingConfig;
|
|
|
import com.jiayue.ipfcst.client.dto.ParsingConstant;
|
|
|
import com.jiayue.ipfcst.client.mapper.an.ParsingNwpInfoMapper;
|
|
|
-import com.jiayue.ipfcst.client.service.ElectricFieldService;
|
|
|
-import com.jiayue.ipfcst.client.service.JiaYueWindPowerNwpResultCoverService;
|
|
|
+import com.jiayue.ipfcst.client.service.*;
|
|
|
import com.jiayue.ipfcst.client.service.an.ParsingInterface;
|
|
|
import com.jiayue.ipfcst.client.service.an.ParsingNwpInfoService;
|
|
|
import com.jiayue.ipfcst.client.utils.Constant;
|
|
@@ -20,10 +19,12 @@ import com.jiayue.ipp.common.data.entity.an.ParsingUrl;
|
|
|
import com.jiayue.ipp.common.data.enums.FileTypeEnum;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.beanutils.PropertyUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
+import java.io.Serializable;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.sql.Time;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -48,7 +49,18 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
|
|
|
private final ParsingNwpInfoMapper parsingNwpInfoMapper;
|
|
|
|
|
|
- private final JiaYueWindPowerNwpResultCoverService jiaYueWindPowerNwpResultCoverService;
|
|
|
+ private final JiaYueWindPowerNwpResultCoverFD0001Service jiaYueWindPowerNwpResultCoverFD0001Service;
|
|
|
+
|
|
|
+ private final JiaYueWindPowerNwpResultCoverFD0002Service jiaYueWindPowerNwpResultCoverFD0002Service;
|
|
|
+
|
|
|
+ private final JiaYueWindPowerNwpResultCoverFD0003Service jiaYueWindPowerNwpResultCoverFD0003Service;
|
|
|
+
|
|
|
+ private final JiaYueWindPowerNwpResultCoverFD0005Service jiaYueWindPowerNwpResultCoverFD0005Service;
|
|
|
+
|
|
|
+ private final JiaYueWindPowerNwpResultCoverFD0006Service jiaYueWindPowerNwpResultCoverFD0006Service;
|
|
|
+
|
|
|
+ private final JiaYueWindPowerNwpResultCoverFD0007Service jiaYueWindPowerNwpResultCoverFD0007Service;
|
|
|
+
|
|
|
|
|
|
private final ElectricFieldService electricFieldService;
|
|
|
|
|
@@ -75,7 +87,7 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
parsingNwpInfo1.setId("a6bef32fab9fb298528851f1d85c77f2");
|
|
|
parsingNwpInfo1.setDataType("m");
|
|
|
parsingNwpInfo1.setFileName("NWP_");
|
|
|
- parsingNwpInfo1.setStationCode("J00770,J00771,J00772");
|
|
|
+ parsingNwpInfo1.setStationCode("J00770,J00771,J00772,J00929,J00930,J00931");
|
|
|
parsingNwpInfo1.setDelFlag("0");
|
|
|
parsingNwpInfo1.setPreTime("1<=>2<=>date=<=>yyyy-MM-dd");
|
|
|
// parsingNwpInfo1.setScDate();
|
|
@@ -106,7 +118,14 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
parsingNwpInfo1.setWd100("3-1322<=>35");
|
|
|
parsingNwpInfo1.setWd170("3-1322<=>36");
|
|
|
parsingNwpInfos.add(parsingNwpInfo1);
|
|
|
- List<JiaYueWindPowerNwpResultCover> jiaYueWindPowerNwpResultCoverList = new ArrayList<>();
|
|
|
+
|
|
|
+ List<JiaYueWindPowerNwpResultCoverFD0001> jiaYueWindPowerNwpResultCoverFD0001List = new ArrayList<>();
|
|
|
+ List<JiaYueWindPowerNwpResultCoverFD0002> jiaYueWindPowerNwpResultCoverFD0002List = new ArrayList<>();
|
|
|
+ List<JiaYueWindPowerNwpResultCoverFD0003> jiaYueWindPowerNwpResultCoverFD0003List = new ArrayList<>();
|
|
|
+ List<JiaYueWindPowerNwpResultCoverFD0005> jiaYueWindPowerNwpResultCoverFD0005List = new ArrayList<>();
|
|
|
+ List<JiaYueWindPowerNwpResultCoverFD0006> jiaYueWindPowerNwpResultCoverFD0006List = new ArrayList<>();
|
|
|
+ List<JiaYueWindPowerNwpResultCoverFD0007> jiaYueWindPowerNwpResultCoverFD0007List = new ArrayList<>();
|
|
|
+
|
|
|
|
|
|
// 获取文件名中的日期时间进行判断
|
|
|
String fileName = file.getName();
|
|
@@ -114,6 +133,13 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
|
|
|
int hour = Integer.valueOf(fileNameHour);
|
|
|
|
|
|
+
|
|
|
+ if (hour == 1 || hour == 13) {
|
|
|
+ log.info("不需解析改时间点的文件!");
|
|
|
+ return parsingStatus += "不需解析改时间点的文件!";
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if (hour >= 1 && hour < 5) {
|
|
|
fileNameHour = "01";
|
|
|
} else if (hour >= 5 && hour < 13) {
|
|
@@ -130,9 +156,30 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
String fileMonth = fileName.substring(8, 10);
|
|
|
String fileDay = fileName.substring(10, 12);
|
|
|
String fileDate = fileYear + "-" + fileMonth + "-" + fileDay;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//判断文件名是否符合配置
|
|
|
if (file.getName().contains(parsingNwpInfo1.getFileName())) {
|
|
|
- List<JiaYueWindPowerNwpResultCover> jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverService.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ List<? extends Serializable> jiaYueWindPowerNwpResultCovers = new ArrayList<>();
|
|
|
+ if (parsingUrl.getStationCode().equals("J00770")) {
|
|
|
+ jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverFD0001Service.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00771")) {
|
|
|
+ jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverFD0002Service.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00772")) {
|
|
|
+ jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverFD0003Service.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00929")) {
|
|
|
+ jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverFD0005Service.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00930")) {
|
|
|
+ jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverFD0006Service.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00931")) {
|
|
|
+ jiaYueWindPowerNwpResultCovers = jiaYueWindPowerNwpResultCoverFD0007Service.getByDataDateAndDateTime(fileDate, fileTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
if (jiaYueWindPowerNwpResultCovers == null || jiaYueWindPowerNwpResultCovers.size() == 0) {
|
|
|
|
|
|
List<String> fileContent = FileUtil.getFileContent(file);
|
|
@@ -181,13 +228,50 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
Date da = simpleDateFormat.parse(fileDate);
|
|
|
|
|
|
// 存入默认数据库(远端)
|
|
|
- jiaYueWindPowerNwpResultCoverList.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
- , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i));
|
|
|
+ if (parsingUrl.getStationCode().equals("J00770")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0001List.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
+ , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i, new JiaYueWindPowerNwpResultCoverFD0001()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00771")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0002List.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
+ , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i, new JiaYueWindPowerNwpResultCoverFD0002()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00772")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0003List.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
+ , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i, new JiaYueWindPowerNwpResultCoverFD0003()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00929")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0005List.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
+ , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i, new JiaYueWindPowerNwpResultCoverFD0005()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00930")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0006List.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
+ , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i, new JiaYueWindPowerNwpResultCoverFD0006()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00931")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0007List.add(this.jiaYueWindPowerNwpResultCover(combinedDateTime, electricFieldService.numberToIdentification(parsingUrl.getStationCode()), da, timeStr, pressures, rhs
|
|
|
+ , swrs, ts, ws10s, wd10s, ws30s, wd30s, ws50s, wd50s, ws70s, wd70s, ws80s, wd80s, ws90s, wd90s, ws100s, wd100s, ws170s, wd170s, i, new JiaYueWindPowerNwpResultCoverFD0007()));
|
|
|
+ }
|
|
|
time += Constant.INTERVALTIME;
|
|
|
-// time1+= Constant.INTERVALTIME;
|
|
|
}
|
|
|
-
|
|
|
- jiaYueWindPowerNwpResultCoverService.saveNwp(jiaYueWindPowerNwpResultCoverList, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ if (parsingUrl.getStationCode().equals("J00770")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0001Service.saveNwp(jiaYueWindPowerNwpResultCoverFD0001List, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00771")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0002Service.saveNwp(jiaYueWindPowerNwpResultCoverFD0002List, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00772")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0003Service.saveNwp(jiaYueWindPowerNwpResultCoverFD0003List, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00929")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0005Service.saveNwp(jiaYueWindPowerNwpResultCoverFD0005List, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00930")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0006Service.saveNwp(jiaYueWindPowerNwpResultCoverFD0006List, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
+ if (parsingUrl.getStationCode().equals("J00931")) {
|
|
|
+ jiaYueWindPowerNwpResultCoverFD0007Service.saveNwp(jiaYueWindPowerNwpResultCoverFD0007List, electricFieldService.numberToIdentification(parsingUrl.getStationCode()));
|
|
|
+ }
|
|
|
parsingStatus = FileTypeEnum.NWP72.name();
|
|
|
log.info("解析Nwp文件:{} 成功! O(∩_∩)O", file.getName());
|
|
|
} else {
|
|
@@ -198,7 +282,7 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
parsingStatus += "nwp暂无单行解析方式";
|
|
|
log.info("nwp暂无单行解析方式");
|
|
|
}
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
parsingStatus += "该时间点文件已经解析过,无需再次解析";
|
|
|
log.info("已经解析过相同时间点的文件无需再次解析");
|
|
|
}
|
|
@@ -295,37 +379,211 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
|
|
|
* @param i
|
|
|
* @return
|
|
|
*/
|
|
|
- public JiaYueWindPowerNwpResultCover jiaYueWindPowerNwpResultCover(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
- List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
- List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i) {
|
|
|
- JiaYueWindPowerNwpResultCover jiaYueWindPowerNwpResultCover = new JiaYueWindPowerNwpResultCover();
|
|
|
- jiaYueWindPowerNwpResultCover.setPreDateTime(localDateTime);
|
|
|
- jiaYueWindPowerNwpResultCover.setObjId(objId);
|
|
|
- jiaYueWindPowerNwpResultCover.setDataType("ACTIVE_POWER");
|
|
|
- jiaYueWindPowerNwpResultCover.setDataFlg("OTHER");
|
|
|
- jiaYueWindPowerNwpResultCover.setDataDate(date);
|
|
|
- jiaYueWindPowerNwpResultCover.setDataTime(time);
|
|
|
- jiaYueWindPowerNwpResultCover.setPressure(valueSet(pressures, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setRh(valueSet(rhs, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setSwr(valueSet(swrs, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setT(valueSet(ts, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs10(valueSet(ws10s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd10(valueSet(wd10s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs30(valueSet(ws30s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd30(valueSet(wd30s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs50(valueSet(ws50s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd50(valueSet(wd50s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs70(valueSet(ws70s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd70(valueSet(wd70s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs80(valueSet(ws80s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd80(valueSet(wd80s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs90(valueSet(ws90s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd90(valueSet(wd90s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs100(valueSet(ws100s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd100(valueSet(wd100s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWs170(valueSet(ws170s, i));
|
|
|
- jiaYueWindPowerNwpResultCover.setWd170(valueSet(wd170s, i));
|
|
|
- return jiaYueWindPowerNwpResultCover;
|
|
|
+ public <T extends Serializable> T jiaYueWindPowerNwpResultCover(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
+ List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
+ List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i, T targetType) {
|
|
|
+
|
|
|
+ try {
|
|
|
+ // 使用反射创建实体对象
|
|
|
+ PropertyUtils.setProperty(targetType, "preDateTime", localDateTime);
|
|
|
+ PropertyUtils.setProperty(targetType, "objId", objId);
|
|
|
+// PropertyUtils.setProperty(targetType, "dataType", "ACTIVE_POWER");
|
|
|
+// PropertyUtils.setProperty(targetType, "dataFlg", "OTHER");
|
|
|
+ PropertyUtils.setProperty(targetType, "dataDate", date);
|
|
|
+ PropertyUtils.setProperty(targetType, "dataDate", date);
|
|
|
+ PropertyUtils.setProperty(targetType, "dataTime", time);
|
|
|
+ PropertyUtils.setProperty(targetType, "p", valueSet(pressures, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "h", valueSet(rhs, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "swr", valueSet(swrs, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "t", valueSet(ts, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_10", valueSet(ws10s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_10", valueSet(wd10s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_30", valueSet(ws30s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_30", valueSet(wd30s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_50", valueSet(ws50s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_50", valueSet(wd50s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_70", valueSet(ws70s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_70", valueSet(wd70s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_80", valueSet(ws80s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_80", valueSet(wd80s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_90", valueSet(ws90s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_90", valueSet(wd90s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_100", valueSet(ws100s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_100", valueSet(wd100s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "ws_170", valueSet(ws170s, i));
|
|
|
+ PropertyUtils.setProperty(targetType, "wd_170", valueSet(wd170s, i));
|
|
|
+
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ // 处理异常,例如日志记录或其他操作
|
|
|
+ }
|
|
|
+ return targetType;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+// public JiaYueWindPowerNwpResultCoverFD0002 jiaYueWindPowerNwpResultCoverFD0002(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
+// List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
+// List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i) {
|
|
|
+// JiaYueWindPowerNwpResultCoverFD0002 jiaYueWindPowerNwpResultCover = new JiaYueWindPowerNwpResultCoverFD0002();
|
|
|
+// jiaYueWindPowerNwpResultCover.setPreDateTime(localDateTime);
|
|
|
+// jiaYueWindPowerNwpResultCover.setObjId(objId);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataType("ACTIVE_POWER");
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataFlg("OTHER");
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataDate(date);
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataTime(time);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setPressure(valueSet(pressures, i));
|
|
|
+//// jiaYueWindPowerNwpResultCover.setRh(valueSet(rhs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setSwr(valueSet(swrs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setT(valueSet(ts, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs10(valueSet(ws10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd10(valueSet(wd10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs30(valueSet(ws30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd30(valueSet(wd30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs50(valueSet(ws50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd50(valueSet(wd50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs70(valueSet(ws70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd70(valueSet(wd70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs80(valueSet(ws80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd80(valueSet(wd80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs90(valueSet(ws90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd90(valueSet(wd90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs100(valueSet(ws100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd100(valueSet(wd100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs170(valueSet(ws170s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd170(valueSet(wd170s, i));
|
|
|
+// return jiaYueWindPowerNwpResultCover;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public JiaYueWindPowerNwpResultCoverFD0003 jiaYueWindPowerNwpResultCoverFD0003(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
+// List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
+// List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i) {
|
|
|
+// JiaYueWindPowerNwpResultCoverFD0003 jiaYueWindPowerNwpResultCover = new JiaYueWindPowerNwpResultCoverFD0003();
|
|
|
+// jiaYueWindPowerNwpResultCover.setPreDateTime(localDateTime);
|
|
|
+// jiaYueWindPowerNwpResultCover.setObjId(objId);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataType("ACTIVE_POWER");
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataFlg("OTHER");
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataDate(date);
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataTime(time);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setPressure(valueSet(pressures, i));
|
|
|
+//// jiaYueWindPowerNwpResultCover.setRh(valueSet(rhs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setSwr(valueSet(swrs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setT(valueSet(ts, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs10(valueSet(ws10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd10(valueSet(wd10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs30(valueSet(ws30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd30(valueSet(wd30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs50(valueSet(ws50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd50(valueSet(wd50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs70(valueSet(ws70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd70(valueSet(wd70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs80(valueSet(ws80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd80(valueSet(wd80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs90(valueSet(ws90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd90(valueSet(wd90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs100(valueSet(ws100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd100(valueSet(wd100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs170(valueSet(ws170s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd170(valueSet(wd170s, i));
|
|
|
+// return jiaYueWindPowerNwpResultCover;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public JiaYueWindPowerNwpResultCoverFD0005 jiaYueWindPowerNwpResultCoverFD0005(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
+// List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
+// List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i) {
|
|
|
+// JiaYueWindPowerNwpResultCoverFD0005 jiaYueWindPowerNwpResultCover = new JiaYueWindPowerNwpResultCoverFD0005();
|
|
|
+// jiaYueWindPowerNwpResultCover.setPreDateTime(localDateTime);
|
|
|
+// jiaYueWindPowerNwpResultCover.setObjId(objId);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataType("ACTIVE_POWER");
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataFlg("OTHER");
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataDate(date);
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataTime(time);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setPressure(valueSet(pressures, i));
|
|
|
+//// jiaYueWindPowerNwpResultCover.setRh(valueSet(rhs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setSwr(valueSet(swrs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setT(valueSet(ts, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs10(valueSet(ws10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd10(valueSet(wd10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs30(valueSet(ws30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd30(valueSet(wd30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs50(valueSet(ws50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd50(valueSet(wd50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs70(valueSet(ws70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd70(valueSet(wd70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs80(valueSet(ws80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd80(valueSet(wd80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs90(valueSet(ws90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd90(valueSet(wd90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs100(valueSet(ws100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd100(valueSet(wd100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs170(valueSet(ws170s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd170(valueSet(wd170s, i));
|
|
|
+// return jiaYueWindPowerNwpResultCover;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public JiaYueWindPowerNwpResultCoverFD0006 jiaYueWindPowerNwpResultCoverFD0006(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
+// List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
+// List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i) {
|
|
|
+// JiaYueWindPowerNwpResultCoverFD0006 jiaYueWindPowerNwpResultCover = new JiaYueWindPowerNwpResultCoverFD0006();
|
|
|
+// jiaYueWindPowerNwpResultCover.setPreDateTime(localDateTime);
|
|
|
+// jiaYueWindPowerNwpResultCover.setObjId(objId);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataType("ACTIVE_POWER");
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataFlg("OTHER");
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataDate(date);
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataTime(time);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setPressure(valueSet(pressures, i));
|
|
|
+//// jiaYueWindPowerNwpResultCover.setRh(valueSet(rhs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setSwr(valueSet(swrs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setT(valueSet(ts, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs10(valueSet(ws10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd10(valueSet(wd10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs30(valueSet(ws30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd30(valueSet(wd30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs50(valueSet(ws50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd50(valueSet(wd50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs70(valueSet(ws70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd70(valueSet(wd70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs80(valueSet(ws80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd80(valueSet(wd80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs90(valueSet(ws90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd90(valueSet(wd90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs100(valueSet(ws100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd100(valueSet(wd100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs170(valueSet(ws170s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd170(valueSet(wd170s, i));
|
|
|
+// return jiaYueWindPowerNwpResultCover;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public JiaYueWindPowerNwpResultCoverFD0007 jiaYueWindPowerNwpResultCoverFD0007(LocalDateTime localDateTime, String objId, Date date, Time time, List<BigDecimal> pressures, List<BigDecimal> rhs, List<BigDecimal> swrs, List<BigDecimal> ts, List<BigDecimal> ws10s, List<BigDecimal> wd10s, List<BigDecimal> ws30s,
|
|
|
+// List<BigDecimal> wd30s, List<BigDecimal> ws50s, List<BigDecimal> wd50s, List<BigDecimal> ws70s, List<BigDecimal> wd70s, List<BigDecimal> ws80s,
|
|
|
+// List<BigDecimal> wd80s, List<BigDecimal> ws90s, List<BigDecimal> wd90s, List<BigDecimal> ws100s, List<BigDecimal> wd100s, List<BigDecimal> ws170s, List<BigDecimal> wd170s, Integer i) {
|
|
|
+// JiaYueWindPowerNwpResultCoverFD0007 jiaYueWindPowerNwpResultCover = new JiaYueWindPowerNwpResultCoverFD0007();
|
|
|
+// jiaYueWindPowerNwpResultCover.setPreDateTime(localDateTime);
|
|
|
+// jiaYueWindPowerNwpResultCover.setObjId(objId);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataType("ACTIVE_POWER");
|
|
|
+//// jiaYueWindPowerNwpResultCover.setDataFlg("OTHER");
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataDate(date);
|
|
|
+// jiaYueWindPowerNwpResultCover.setDataTime(time);
|
|
|
+//// jiaYueWindPowerNwpResultCover.setPressure(valueSet(pressures, i));
|
|
|
+//// jiaYueWindPowerNwpResultCover.setRh(valueSet(rhs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setSwr(valueSet(swrs, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setT(valueSet(ts, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs10(valueSet(ws10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd10(valueSet(wd10s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs30(valueSet(ws30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd30(valueSet(wd30s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs50(valueSet(ws50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd50(valueSet(wd50s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs70(valueSet(ws70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd70(valueSet(wd70s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs80(valueSet(ws80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd80(valueSet(wd80s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs90(valueSet(ws90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd90(valueSet(wd90s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs100(valueSet(ws100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd100(valueSet(wd100s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWs170(valueSet(ws170s, i));
|
|
|
+// jiaYueWindPowerNwpResultCover.setWd170(valueSet(wd170s, i));
|
|
|
+// return jiaYueWindPowerNwpResultCover;
|
|
|
+// }
|
|
|
+
|
|
|
}
|