package com.zksy.WaterSupply.export;

import com.zksy.WaterSupply.WaterSourceInfo.domain.WaterSourceInfo;
import com.zksy.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class WaterSourceExportDTO {
    @Excel(name = "水源地编号") private String sourceId;
    @Excel(name = "水源地名称") private String sourceName;
    @Excel(name = "水源类型") private String waterType;
    @Excel(name = "水质等级") private String waterQualityLevel;
    @Excel(name = "保护等级") private String protectionLevel;
    @Excel(name = "状态") private String status;
    @Excel(name = "经度") private BigDecimal longitude;
    @Excel(name = "纬度") private BigDecimal latitude;
    public static WaterSourceExportDTO from(WaterSourceInfo value) { WaterSourceExportDTO dto = new WaterSourceExportDTO(); dto.sourceId=value.getSourceId(); dto.sourceName=value.getSourceName(); dto.waterType=value.getWaterType(); dto.waterQualityLevel=value.getWaterQualityLevel(); dto.protectionLevel=value.getProtectionLevel(); dto.status=value.getStatus(); dto.longitude=value.getLongitude(); dto.latitude=value.getLatitude(); return dto; }
}
