package cn.iocoder.yudao.module.pms.controller.admin.iotprojecttask.vo;

import cn.iocoder.yudao.module.pms.controller.admin.iotattachment.vo.IotAttachmentRespVO;
import cn.iocoder.yudao.module.pms.controller.admin.iotrddailyreport.vo.IotRdDailyReportStatisticsItemVO;
import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttaskattrs.IotTaskAttrModelProperty;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

@Schema(description = "管理后台 - 项目信息任务拆分 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotProjectTaskRespVO {

    @Schema(description = "客户名称")
    @ExcelProperty("客户")
    private String manufactureName;

    @Schema(description = "合同名称", example = "王五")
    @ExcelProperty("合同名称")
    private String contractName;

    @Schema(description = "合同编号")
    @ExcelProperty("合同编号")
    private String contractCode;

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31284")
    private Long id;

    @Schema(description = "项目id", example = "2988")
    private Long projectId;

    @Schema(description = "平台井标识 0非平台井 1平台井", example = "1")
    private Integer platformWell;

    @Schema(description = "平台井组", example = "984r98roori928392")
    private String platformGroup;

    @Schema(description = "井号", example = "赵六")
    @ExcelProperty("井号")
    private String wellName;

    @Schema(description = "井型", example = "2")
    private String wellType;

    @Schema(description = "井别", example = "2")
    private String wellCategory;

    @Schema(description = "施工地点")
    @ExcelProperty("施工地点")
    private String location;

    @Schema(description = "施工设备")
    private Set<Long> deviceIds;

    @Schema(description = "施工工艺")
    private String technique;

    @Schema(description = "责任人([123,234])")
    private Set<Long> responsiblePerson;

    @Schema(description = "工单填报人([123,234])")
    private Set<Long> submitter;

    @Schema(description = "设计工作量")
    private String workloadDesign;

    @Schema(description = "工作量单位(段/层/方/井深/进尺)")
    private String workloadUnit;

    @Schema(description = "(瑞恒)施工状态", example = "dq sg")
    private String status;

    @Schema(description = "瑞都施工状态", example = "dq sg")
    private String rdStatus;

    @Schema(description = "瑞鹰钻井施工状态", example = "dq sg")
    private String rigStatus;

    @Schema(description = "瑞鹰修井施工状态", example = "dq sg")
    private String repairStatus;

    @Schema(description = "施工状态 聚合label", example = "dq sg")
    private String statusLabel;

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

    @Schema(description = "用户名", example = "赵六")
    private String userName;

    @Schema(description = "用户id", example = "25471")
    private Long userId;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "施工队伍")
    private Set<Long> deptIds;

    @Schema(description = "该任务所属部门id", example = "1755")
    private Long deptId;

    /**
     * 扩展字段
     */
    @Schema(description = "项目所属部门id", example = "1755")
    private Long projectDeptId;

    @Schema(description = "任务扩展属性", example = "[{\"a\": 1},{\"b\": 2}]")
    private List<IotTaskAttrModelProperty> extProperty;

    @Schema(description = "施工队伍", example = "THA1,THA2")
    @ExcelProperty("施工队伍")
    private String deptNames;

    @Schema(description = "平台井明细", example = "[{\"井号\": #233, \"工作量\": 234}]")
    private List<IotProjectTaskPlatformVO> platformWells;

    @Schema(description = "当前任务已经完成的工作量明细")
    private List<IotRdDailyReportStatisticsItemVO> items;

    @Schema(description = "任务附件集合")
    private List<IotAttachmentRespVO> attachments;
}