maven
2025-11-28 3f3a1ed182e96214e66f6456ee692427bf04d454
src/main/java/com/ruoyi/device/dto/DeviceLedgerDto.java
@@ -4,10 +4,13 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.dto.DateQueryDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
@@ -15,7 +18,7 @@
 */
@Data
@TableName("device_ledger")
public class DeviceLedgerDto {
public class DeviceLedgerDto extends DateQueryDto {
    /**
     * 主键ID,自增
@@ -32,6 +35,19 @@
     * 规格型号
     */
    private String deviceModel;
    /**
     * 设备品牌
     */
    @ApiModelProperty("设备品牌")
    private String deviceBrand;
    /**
     * 存放位置
     */
    @ApiModelProperty("存放位置")
    private String storageLocation;
    /**
     * 供应商名称
@@ -98,4 +114,25 @@
     * 租户ID
     */
    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;
}