package com.zksy.WaterSupply.export;

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

import java.math.BigDecimal;

@Data
public class WaterPumpStationExportDTO {
    @Excel(name = "泵站编号") private String stationCode;
    @Excel(name = "泵站名称") private String stationName;
    @Excel(name = "位置") private String location;
    @Excel(name = "泵数量") private Integer pumpCount;
    @Excel(name = "设计流量") private BigDecimal designFlow;
    @Excel(name = "设计扬程") private BigDecimal designHead;
    @Excel(name = "状态") private String status;
    @Excel(name = "经度") private BigDecimal longitude;
    @Excel(name = "纬度") private BigDecimal latitude;
    public static WaterPumpStationExportDTO from(WaterPumpStation value) { WaterPumpStationExportDTO dto = new WaterPumpStationExportDTO(); dto.stationCode=value.getStationCode(); dto.stationName=value.getStationName(); dto.location=value.getLocation(); dto.pumpCount=value.getPumpCount(); dto.designFlow=value.getDesignFlow(); dto.designHead=value.getDesignHead(); dto.status=value.getStatus(); dto.longitude=value.getLongitude(); dto.latitude=value.getLatitude(); return dto; }
}
