package com.zksy.WaterSupply.export;

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

import java.math.BigDecimal;

@Data
public class WaterPlantExportDTO {
    @Excel(name = "水厂编号") private String plantCode;
    @Excel(name = "水厂名称") private String plantName;
    @Excel(name = "位置") private String location;
    @Excel(name = "设计能力") private BigDecimal designCapacity;
    @Excel(name = "当前能力") private BigDecimal currentCapacity;
    @Excel(name = "状态") private String status;
    @Excel(name = "经度") private BigDecimal longitude;
    @Excel(name = "纬度") private BigDecimal latitude;
    public static WaterPlantExportDTO from(WaterPlantInfo value) { WaterPlantExportDTO dto = new WaterPlantExportDTO(); dto.plantCode=value.getPlantCode(); dto.plantName=value.getPlantName(); dto.location=value.getLocation(); dto.designCapacity=value.getDesignCapacity(); dto.currentCapacity=value.getCurrentCapacity(); dto.status=value.getStatus(); dto.longitude=value.getLongitude(); dto.latitude=value.getLatitude(); return dto; }
}
