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

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

/**
 * 工作台 - 工料机批量更新结果 Response VO
 * 用于返回编制价/价格来源批量同步的影响信息
 */
@Schema(description = "工作台 - 工料机批量更新结果 Response VO")
@Data
public class WbBoqResourceBatchUpdateResultVO {

    @Schema(description = "总影响行数", example = "5")
    private int totalAffectedRows;

    @Schema(description = "受影响的单位工程列表")
    private List<AffectedUnitInfo> affectedUnits;

    @Schema(description = "受影响的单位工程信息")
    @Data
    public static class AffectedUnitInfo {

        @Schema(description = "单位工程ID（compile_tree_id）", example = "1")
        private Long compileTreeId;

        @Schema(description = "单位工程名称", example = "1号楼")
        private String unitName;

        @Schema(description = "该单位工程下影响的行数", example = "3")
        private int affectedRows;
    }
}
