Browse Source

dfdsf3224

xusl 8 months ago
parent
commit
1622140ffa

+ 8 - 20
ipp-common/ipp-common-data/src/main/java/com/jiayue/ipp/common/data/enums/FileTypeEnum.java

@@ -13,26 +13,14 @@ import lombok.Getter;
 @Getter
 @AllArgsConstructor
 public enum FileTypeEnum {
-	DQ(1,"短期"),
-	CDQ(2,"超短期"),
-	THEORY(3,"理论功率"),
-	NWP24(4,"24NWP"),
-	NWP72(5,"72NWP"),
-	QXZ(6,"气象站"),
-	CFT(7,"测风塔"),
-	NBQ(8,"逆变器"),
-	FJXX(9,"风机信息"),
-	GFZJXX(10,"光伏组件信息"),
-	JXJH(11,"检修计划"),
-	ZR(12,"昨日开机容量"),
-	RQ(13,"日前预测"),
-	RQ14(14,"日前预测14"),
-	CZXX(15,"场站信息"),
-	DQKY(16,"可用短期"),
-	CDQKY(17,"可用超短期"),
-	THEORYCDQ(18,"理论超短期"),
-	DJ(19,"单机"),
-	RP(20,"实际功率");
+	DQ(0,"短期"),
+	CDQ(1,"超短期"),
+	CFT(2,"测风塔"),
+	QXZ(3,"气象站"),
+	NWP(4,"NWP"),
+	FJ(5,"风机信息"),
+	NBQ(6,"逆变器"),
+	RP(7,"实际功率");
 
 	private Integer code;
 	private String message;

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingCdqInfoServiceImpl.java

@@ -68,7 +68,7 @@ public class ParsingCdqInfoServiceImpl extends ServiceImpl<ParsingCdqInfoMapper,
     public FileAnalysisStatusDto parsing(File file, ParsingUrl parsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.CDQ.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.CDQ.getCode()+"");
 //
 //        String parsingStatus = ParsingConstant.FAIL;
 

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingCftInfoServiceImpl.java

@@ -64,7 +64,7 @@ public class ParsingCftInfoServiceImpl extends ServiceImpl<ParsingCftInfoMapper,
     public FileAnalysisStatusDto parsing(File file, ParsingUrl parsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.CFT.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.CFT.getCode()+"");
 
         try {
             List<ParsingCftInfo> parsingCftInfos = baseMapper.selectList(Wrappers.lambdaQuery(ParsingCftInfo.class).like(ParsingInfo::getStationCode, parsingUrl.getStationCode()));

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingDqInfoServiceImpl.java

@@ -68,7 +68,7 @@ public class ParsingDqInfoServiceImpl extends ServiceImpl<ParsingDqInfoMapper, P
     public FileAnalysisStatusDto parsing(File file, ParsingUrl parsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.DQ.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.DQ.getCode()+"");
 
         try {
             List<ForecastPowerShortTermHis> forecastPowerShortTermHisList = new ArrayList<>();

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingFjInfoServiceImpl.java

@@ -65,7 +65,7 @@ public class ParsingFjInfoServiceImpl extends ServiceImpl<ParsingFjInfoMapper, P
     public FileAnalysisStatusDto parsing(File file, ParsingUrl ftpParsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.FJ.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.FJ.getCode()+"");
 
         try {
 

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingNbqInfoServiceImpl.java

@@ -59,7 +59,7 @@ public class ParsingNbqInfoServiceImpl extends ServiceImpl<ParsingNbqInfoMapper,
     public FileAnalysisStatusDto parsing(File file, ParsingUrl ftpParsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.NBQ.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.NBQ.getCode()+"");
 
         try {
 

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingNwpInfoServiceImpl.java

@@ -78,7 +78,7 @@ public class ParsingNwpInfoServiceImpl extends ServiceImpl<ParsingNwpInfoMapper,
     public FileAnalysisStatusDto parsing(File file, ParsingUrl parsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.NWP.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.NWP.getCode()+"");
 
         try {
 

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingQxzInfoServiceImpl.java

@@ -58,7 +58,7 @@ public class ParsingQxzInfoServiceImpl extends ServiceImpl<ParsingQxzInfoMapper,
     public FileAnalysisStatusDto parsing(File file, ParsingUrl parsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.QXZ.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.QXZ.getCode()+"");
         try {
 
             List<ParsingQxzInfo> parsingQxzInfos = baseMapper.selectList(Wrappers.lambdaQuery(ParsingQxzInfo.class).like(ParsingInfo::getStationCode, parsingUrl.getStationCode()));

+ 1 - 1
ipp-idp/src/main/java/com/jiayue/ipp/idp/service/impl/an/ParsingRpInfoServiceImpl.java

@@ -59,7 +59,7 @@ public class ParsingRpInfoServiceImpl extends ServiceImpl<ParsingRpInfoMapper, P
     public FileAnalysisStatusDto parsing(File file, ParsingUrl parsingUrl) {
         FileAnalysisStatusDto fileAnalysisStatusDto = new FileAnalysisStatusDto();
         fileAnalysisStatusDto.setFileName(file.getName());
-        fileAnalysisStatusDto.setFileType(FileTypeEnum.RP.name());
+        fileAnalysisStatusDto.setFileType(FileTypeEnum.RP.getCode()+"");
 
         try {
             List<ParsingRpInfo> parsingRpInfos = baseMapper.selectList(Wrappers.lambdaQuery(ParsingRpInfo.class).like(ParsingInfo::getStationCode, parsingUrl.getStationCode()));