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

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

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 抄表记录新增/修改 Request VO")
@Data
public class EnergyDeviceCheckRecordSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13646")
    private Long id;
    @Schema(description = "设备类型", example = "1")
    private String deviceType;
    @Schema(description = "能源设备Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17334")
    @NotNull(message = "能源设备Id不能为空")
    private Long deviceId;

    @Schema(description = "上次抄表时间")
    private LocalDateTime lastCheckTime;

    @Schema(description = "上次抄表值")
    private BigDecimal lastCheckValue;

    @Schema(description = "抄表值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "抄表值不能为空")
    private BigDecimal checkValue;

    @Schema(description = "抄表时间")
    private LocalDateTime checkTime;

    @Schema(description = "差值")
    private BigDecimal diffValue;

    @Schema(description = "单价", example = "1868")
    private BigDecimal unitPrice;

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

}