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

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

@Schema(description = "管理后台 - 单位工程变量设置 Response VO")
@Data
public class QuotaVariableSettingRespVO {

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;

    @Schema(description = "费率模式节点ID", example = "1002")
    private Long catalogItemId;

    @Schema(description = "类别：division-分部分项/measure-措施项目/other-其他项目/unit_summary-单位汇总", example = "division")
    private String category;

    @Schema(description = "费用名称", example = "人工费")
    private String name;

    @Schema(description = "费用代号", example = "RGF")
    private String code;

    @Schema(description = "计算基数")
    private Map<String, Object> calcBase;

    @Schema(description = "排序字段", example = "1")
    private Integer sortOrder;

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

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

    @Schema(description = "数据来源：manual-手动配置，fee_item-定额取费引用", example = "manual")
    private String source;

    @Schema(description = "汇总值（后端计算）", example = "12345.67")
    private java.math.BigDecimal summaryValue;
}
