package cn.iocoder.yudao.module.mes.controller.admin.energydevice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 能源设备新增/修改 Request VO")
@Data
public class EnergyDeviceSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25931")
    private Long id;

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

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


    @Schema(description = "信息资料")
    private String info;

    @Schema(description = "抄表周期cron")
    private String checkCron;

    @Schema(description = "最后抄表时间")
    private LocalDateTime lastCheckTime;

    @Schema(description = "最后抄表值")
    private BigDecimal lastCheckValue;

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;

    @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 = "车间1")
    private String rules;

    @Schema(description = "计算规则集合")
    private List<OperationRulesVO> operationRulesVOList;


}