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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

@Schema(description = "工料机项响应")
@Data
public class ResourceItemRespVO {

    @Schema(description = "资源项ID")
    private Long id;

    @Schema(description = "库条目ID")
    private Long catalogItemId;

    @Schema(description = "工料机名称")
    private String name;

    @Schema(description = "类别ID")
    private Long categoryId;

    @Schema(description = "类别名称")
    private String categoryName;

    @Schema(description = "类型 labor/material/machine")
    private String type;

    @Schema(description = "单位")
    private String unit;
    
    @Schema(description = "税率")
    private java.math.BigDecimal taxRate;
    
    @Schema(description = "除税基价")
    private java.math.BigDecimal taxExclBasePrice;
    
    @Schema(description = "含税基价")
    private java.math.BigDecimal taxInclBasePrice;
    
    @Schema(description = "除税编制价")
    private java.math.BigDecimal taxExclCompilePrice;
    
    @Schema(description = "含税编制价")
    private java.math.BigDecimal taxInclCompilePrice;
    
    @Schema(description = "计算基数")
    private Map<String, Object> calcBase;
    
    @Schema(description = "复合数据标识符")
    private Integer isMerged;

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

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

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

    @Schema(description = "工料机机类树节点ID")
    private Long categoryTreeId;

    @Schema(description = "工料机机类树节点名称")
    private String categoryTreeName;
}
