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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Collection;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 瑞都日报明细(生产动态拆分)分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotRdDailyReportDetailPageReqVO extends PageParam {

    @Schema(description = "施工队伍id", example = "21088")
    private Long deptId;

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

    @Schema(description = "任务id", example = "19737")
    private Long taskId;

    @Schema(description = "日报id", example = "25536")
    private Long reportId;

    @Schema(description = "日报日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportDate;

    @Schema(description = "起始时间段")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalTime[] startTime;

    @Schema(description = "结束时间段")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalTime[] endTime;

    @Schema(description = "时长(H)")
    private BigDecimal duration;

    @Schema(description = "当日施工详情")
    private String constructionDetail;

    @Schema(description = "工况")
    private String currentOperation;

    @Schema(description = "施工状态(动迁上井/动迁下井/施工准备/施工...)", example = "2")
    private String rdStatus;

    @Schema(description = "工作量")
    private String extProperty;

    @Schema(description = "排序值")
    private Integer sort;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "状态(0启用 1禁用)", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    /**
     * 扩展字段
     */
    @Schema(description = "日报id", example = "25536")
    private Collection<Long> reportIds;
}