package com.yhy.module.core.controller.admin.workbench.vo.audit;

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

/**
 * 送审分部分项 Response VO（联表查询编制模式实时数据）
 */
@Schema(description = "工作台 - 送审分部分项 Response VO")
@Data
public class AuditSubmitDivisionRespVO {

    @Schema(description = "来源分部分项ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long sourceDivisionId;

    @Schema(description = "父节点ID", example = "1")
    private Long parentId;

    @Schema(description = "节点类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "quota")
    private String nodeType;

    @Schema(description = "来源类型", example = "manual")
    private String sourceType;

    @Schema(description = "编码", example = "010101")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "土石方工程")
    private String name;

    @Schema(description = "单位", example = "m3")
    private String unit;

    @Schema(description = "项目特征", example = "1.土壤类别：一类土")
    private String feature;

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

    @Schema(description = "层级路径")
    private String[] path;

    @Schema(description = "送审工程量", example = "100.00")
    private BigDecimal submitQty;

    @Schema(description = "送审单价", example = "25.50")
    private BigDecimal submitUnitPrice;

    @Schema(description = "送审费率", example = "3.5")
    private BigDecimal submitRate;

    @Schema(description = "送审合价", example = "2550.00")
    private BigDecimal submitTotalPrice;

    @Schema(description = "扩展属性")
    private Map<String, Object> attributes;

    @Schema(description = "子节点列表")
    private List<AuditSubmitDivisionRespVO> children;
}
