package com.yhy.module.core.controller.admin.unit.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;
import lombok.Data;

/**
 * 工程费率设定 响应 VO
 */
@Schema(description = "管理后台 - 工程费率设定响应")
@Data
public class UnitRateSettingRespVO {

    @Schema(description = "费率设定ID")
    private Long id;

    @Schema(description = "单位工程ID")
    private Long unitId;

    @Schema(description = "费率项ID（目录节点）")
    private Long rateItemId;

    @Schema(description = "选中的值节点ID（下拉模式）")
    private Long selectedValueId;

    @Schema(description = "输入值（填写模式）")
    private BigDecimal inputValue;

    @Schema(description = "基线值（快照用）")
    private BigDecimal baseValue;

    @Schema(description = "计算后的字段值")
    private Map<Integer, BigDecimal> fieldValues;

    @Schema(description = "基线字段值（快照用）")
    private Map<Integer, BigDecimal> baseFieldValues;

    @Schema(description = "设置名称")
    private String settingName;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
