haungxing
8 months ago
17 changed files with 299 additions and 100 deletions
@ -0,0 +1,14 @@
|
||||
package com.hnac.hzims.bigmodel.interactive.vo; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @Author: huangxing |
||||
* @Date: 2024/05/24 15:55 |
||||
*/ |
||||
@Data |
||||
public class AttrSelectionVO extends SelectionVO implements Serializable { |
||||
private DataItemVO item; |
||||
} |
@ -0,0 +1,39 @@
|
||||
package com.hnac.hzims.bigmodel.interactive.constants; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
||||
|
||||
import java.util.Arrays; |
||||
|
||||
/** |
||||
* @Author: huangxing |
||||
* @Date: 2024/05/24 17:14 |
||||
*/ |
||||
@AllArgsConstructor |
||||
public enum SearchStationTypeEnum { |
||||
TOTAL("站点总数量",null), |
||||
HYDROPOWER_TOTAL("水电站总数量","0"), |
||||
WIND_POWER_TOTAL("风电场总数量","1"), |
||||
ENERGY_STORAGE_TOTAL("储能站总数量","3"), |
||||
PHOTOVOLTAIC_TOTAL("光伏站总数量","5"), |
||||
CHARGE_TOTAL("充电站总数量","7"), |
||||
HYDROPOWER_NUM("水电站接入量","0"), |
||||
WIND_POWER_NUM("风电场接入量","1"), |
||||
ENERGY_STORAGE_NUM("储能站接入量","3"), |
||||
PHOTOVOLTAIC_NUM("光伏站接入量","5"), |
||||
CHARGE_NUM("充电站接入量","7"), |
||||
; |
||||
|
||||
@Getter |
||||
private String searchStationType; |
||||
@Getter |
||||
private String stationType; |
||||
|
||||
public static SearchStationTypeEnum getTypeEnum(String searchStationType) { |
||||
return Arrays.stream(SearchStationTypeEnum.class.getEnumConstants()) |
||||
.filter(e -> e.getSearchStationType().equals(searchStationType)) |
||||
.findFirst() |
||||
.orElse(null); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,28 @@
|
||||
package com.hnac.hzims.bigmodel.interactive.constants; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
||||
import lombok.Getter; |
||||
|
||||
import java.util.Arrays; |
||||
|
||||
/** |
||||
* @Author: huangxing |
||||
* @Date: 2024/05/24 17:13 |
||||
*/ |
||||
@AllArgsConstructor |
||||
public enum SearchTypeEnum { |
||||
REAL("实时"), |
||||
HISTORY("历史") |
||||
; |
||||
@Getter |
||||
private String searchType; |
||||
|
||||
public static SearchTypeEnum getSearchType(String searchType) { |
||||
return Arrays.stream(SearchTypeEnum.class.getEnumConstants()) |
||||
.filter(e -> e.getSearchType().equals(searchType)) |
||||
.findFirst() |
||||
.orElse(null); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue