package cn.iocoder.yudao.module.mes.controller.admin.em.meter.vo; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import lombok.Data; import java.math.BigDecimal; import java.time.LocalDate; @Schema(description = "管理后台 - MES 能耗计量点新增/修改 Request VO") @Data public class MesEmMeterSaveReqVO { @Schema(description = "编号", example = "1024") private Long id; @Schema(description = "计量点编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "EM-DL-001") @NotEmpty(message = "计量点编码不能为空") private String code; @Schema(description = "计量点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "变压器车间总电表") @NotEmpty(message = "计量点名称不能为空") private String name; @Schema(description = "能源类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "能源类型不能为空") private Integer energyType; @Schema(description = "计量单位", example = "kWh") private String unit; @Schema(description = "表号", example = "DTSD341-001") private String meterNo; @Schema(description = "所属车间编号", example = "7") private Long workshopId; @Schema(description = "所属产线编号", example = "1") private Long lineId; @Schema(description = "关联设备编号", example = "1001") private Long machineryId; @Schema(description = "倍率", example = "1") private BigDecimal ratio; @Schema(description = "初始读数", example = "0") private BigDecimal initialReading; @Schema(description = "折标煤系数(kgce/计量单位)", example = "0.1229") private BigDecimal coalFactor; @Schema(description = "日用量异常上限(超过触发疑似跑冒滴漏预警)", example = "500") private BigDecimal leakThreshold; @Schema(description = "责任人编号", example = "1") private Long chargeUserId; @Schema(description = "投用日期") private LocalDate installDate; @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") @NotNull(message = "状态不能为空") private Integer status; @Schema(description = "备注", example = "备注") private String remark; }