package cn.iocoder.yudao.module.mes.controller.admin.energydevice.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 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 EnergyDeviceReportPageReqVO extends PageParam {


    @Schema(description = "名称", example = "芋艿")
    private String name;

    @Schema(description = "编码")
    private String code;

    @Schema(description = "表ID", example = "1")
    private Long deviceId;

    @Schema(description = "表名称", example = "水")
    private String deviceName;

    @Schema(description = "能耗类型ID", example = "1")
    private Long deviceTypeId;

    @Schema(description = "能耗类型名称", example = "水")
    private String deviceTypeName;

    @Schema(description = "所属区域ID", example = "1")
    private Long orgId;

    @Schema(description = "所属区域名称", example = "车间1")
    private String orgName;

    @Schema(description = "消耗量", example = "1000")
    private String value;

    @Schema(description = "单位", example = "1000")
    private String unitName;

    @Schema(description = "计算规则", example = "车间1")
    private String rules;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;




}