package com.zksy.WaterSupply.export;

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

import java.math.BigDecimal;

@Data
public class WaterUserExportDTO {
    @Excel(name = "用户编号") private String userCode;
    @Excel(name = "用户名称") private String userName;
    @Excel(name = "用户类型") private String userType;
    @Excel(name = "地址") private String address;
    @Excel(name = "年用水量") private BigDecimal annualWaterConsumption;
    @Excel(name = "状态") private String status;
    @Excel(name = "经度") private BigDecimal longitude;
    @Excel(name = "纬度") private BigDecimal latitude;
    public static WaterUserExportDTO from(WaterUserInfo value) { WaterUserExportDTO dto = new WaterUserExportDTO(); dto.userCode=value.getUserCode(); dto.userName=value.getUserName(); dto.userType=value.getUserType(); dto.address=value.getAddress(); dto.annualWaterConsumption=value.getAnnualWaterConsumption(); dto.status=value.getStatus(); dto.longitude=value.getLongitude(); dto.latitude=value.getLatitude(); return dto; }
}
