package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.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.time.LocalDateTime;
import java.util.List;

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 IotDailyReportAttrsPageReqVO extends PageParam {

    @Schema(description = "日报扩展模板id", example = "22440")
    private Long templateId;

    @Schema(description = "公司id", example = "27294")
    private Long deptId;

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

    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂 ...)")
    private String projectClassification;

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

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

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

    @Schema(description = "属性名称", example = "张三")
    private String name;

    @Schema(description = "属性标识符")
    private String identifier;

    @Schema(description = "数据类型(double text textarea date dropdown)", example = "2")
    private String dataType;

    @Schema(description = "是否必填(0非必填 1必填)")
    private Integer required;

    @Schema(description = "单位(MPa)")
    private String unit;

    @Schema(description = "访问模式(r读  w写)")
    private String accessMode;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "最大值")
    private String maxValue;

    @Schema(description = "最小值")
    private String minValue;

    @Schema(description = "不同专业公司的扩展属性")
    private String extProperty;

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

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

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

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

    /**
     * 扩展字段
     */
    @Schema(description = "施工工艺id集合", example = "123,234")
    private List<String> techniqueIds;
}