liyong
10 小时以前 1ca5584d7e3200a9af65a099bd26d3593e2ba702
src/main/java/com/ruoyi/device/pojo/DeviceLedger.java
@@ -4,19 +4,20 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
import java.util.Date;
/**
 * 设备台账实体类
 */
@Data
@TableName("device_ledger")
@Schema
public class DeviceLedger {
    /**
@@ -28,12 +29,26 @@
    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String deviceName;
    /**
     * 规格型号
     */
    @Schema(description = "规格型号")
    private String deviceModel;
    /**
     * 设备品牌
     */
    @Schema(description = "设备品牌")
    private String deviceBrand;
    /**
     * 存放位置
     */
    @Schema(description = "存放位置")
    private String storageLocation;
    /**
     * 供应商名称
@@ -103,4 +118,47 @@
     */
    @TableField(fill = FieldFill.INSERT)
    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;
    @TableField(exist = false)
    @Schema(description = "累计折旧")
    private BigDecimal deprAmount;
    @TableField(exist = false)
    @Schema(description = "净值")
    private BigDecimal netValue;
    @Schema(description = "设备类型")
    private String type;
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
}