package cn.iocoder.yudao.module.pms.controller.admin.iotdeviceallotlog.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.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 IotDeviceAllotLogPageReqVO extends PageParam {

    @Schema(description = "设备id", example = "10930")
    private Long deviceId;

    @Schema(description = "设备调拨前部门", example = "30278")
    private Long oldDeptId;

    @Schema(description = "设备调拨后部门", example = "27763")
    private Long newDeptId;

    @Schema(description = "设备调拨原因", example = "不好")
    private String reason;

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

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

    /**
     * 扩展属性
     */
    @Schema(description = "设备id集合", example = "12,13")
    private Collection<Long> deviceIds;

    @Schema(description = "设备编码", example = "YF321")
    private String deviceCode;

    @Schema(description = "设备名称", example = "增压机")
    private String deviceName;

    @Schema(description = "设备品牌", example = "寿力")
    private String brand;

    @Schema(description = "设备状态", example = "sg")
    private String deviceStatus;

    @Schema(description = "资产性质")
    private String assetProperty;

    @Schema(description = "是否设置过设备责任人/调整过状态/调拨 Y设置过 N未设置 A全部")
    private String setFlag;
}