zss
2026-04-24 a1454f4b28db363ca4c4a6ea182d3aab95dc9518
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.v3.oas.annotations.media.Schema;
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;
    /**
     * 设备品牌
     */
    @Schema(description = "设备品牌")
    private String deviceBrand;
    /**
     * 存放位置
     */
    @Schema(description = "存放位置")
    private String storageLocation;
    /**
     * 供应商名称
@@ -98,4 +114,35 @@
     * 租户ID
     */
    private Long tenantId;
    @Schema(description = "状态")
    private String status;
    @Schema(description = "计划运行时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate planRuntimeTime;
    @Schema(description = "开始运行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startRuntimeTime;
    @Schema(description = "结束运行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endRuntimeTime;
    @Schema(description = "运行时长")
    private String runtimeDuration;
    @Schema(description = "是否折旧 1-是 2-否")
    private Integer isDepr;
    @Schema(description = "每年折旧金额")
    private BigDecimal annualDepreciationAmount;
    @Schema(description = "设备类型")
    private String type;
}