| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | |
| | | */ |
| | | @Data |
| | | @TableName("device_ledger") |
| | | @ApiModel |
| | | public class DeviceLedger { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 设备名称 |
| | | */ |
| | | @ApiModelProperty("设备名称") |
| | | private String deviceName; |
| | | |
| | | /** |
| | | * 规格型号 |
| | | */ |
| | | @ApiModelProperty("规格型号") |
| | | private String deviceModel; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | /* *************************** 运行管理 *************************** */ |
| | | |
| | | @ApiModelProperty("状态") |
| | | private String status; |
| | | |
| | | @ApiModelProperty("计划运行时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate planRuntimeTime; |
| | | |
| | | @ApiModelProperty("开始运行时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime startRuntimeTime; |
| | | |
| | | @ApiModelProperty("结束运行时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime endRuntimeTime; |
| | | |
| | | @ApiModelProperty("运行时长") |
| | | private String runtimeDuration; |
| | | } |