package com.ruoyi.device.dto; 
 | 
  
 | 
import com.baomidou.mybatisplus.annotation.FieldFill; 
 | 
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; 
 | 
  
 | 
/** 
 | 
 * 设备台账实体类 
 | 
 */ 
 | 
@Data 
 | 
@TableName("device_ledger") 
 | 
public class DeviceLedgerDto extends DateQueryDto { 
 | 
  
 | 
    /** 
 | 
     * 主键ID,自增 
 | 
     */ 
 | 
  
 | 
    private Long id; 
 | 
  
 | 
    /** 
 | 
     * 设备名称 
 | 
     */ 
 | 
    private String deviceName; 
 | 
  
 | 
    /** 
 | 
     * 规格型号 
 | 
     */ 
 | 
    private String deviceModel; 
 | 
  
 | 
    /** 
 | 
     * 供应商名称 
 | 
     */ 
 | 
    private String supplierName; 
 | 
  
 | 
    /** 
 | 
     * 单位 
 | 
     */ 
 | 
    private String unit; 
 | 
  
 | 
    /** 
 | 
     * 数量 
 | 
     */ 
 | 
    private BigDecimal number; 
 | 
  
 | 
    /** 
 | 
     * 含税单价 
 | 
     */ 
 | 
    private BigDecimal taxIncludingPriceUnit; 
 | 
  
 | 
    /** 
 | 
     * 含税总价 
 | 
     */ 
 | 
    private BigDecimal taxIncludingPriceTotal; 
 | 
  
 | 
    /** 
 | 
     * 税率 
 | 
     */ 
 | 
    private BigDecimal taxRate; 
 | 
  
 | 
    /** 
 | 
     * 不含税总价 
 | 
     */ 
 | 
    private BigDecimal unTaxIncludingPriceTotal; 
 | 
  
 | 
    /** 
 | 
     * 录入时间 
 | 
     */ 
 | 
    @TableField(fill = FieldFill.INSERT) 
 | 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
 | 
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
 | 
    private LocalDateTime createTime; 
 | 
  
 | 
    /** 
 | 
     * 更新时间 
 | 
     */ 
 | 
    @TableField(fill = FieldFill.INSERT_UPDATE) 
 | 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
 | 
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
 | 
    private LocalDateTime updateTime; 
 | 
  
 | 
    /** 
 | 
     * 录入人 
 | 
     */ 
 | 
    private String createUser; 
 | 
  
 | 
    /** 
 | 
     * 更新人 
 | 
     */ 
 | 
    private String updateUser; 
 | 
  
 | 
    /** 
 | 
     * 租户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; 
 | 
} 
 |