package com.ruoyi.business.entity;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import com.ruoyi.common.core.domain.MyBaseEntity;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDate;
|
|
/**
|
* 设备管理表 实体类
|
*
|
* @author ld
|
* @date 2025-07-01
|
*/
|
@Data
|
@TableName("equipment_management")
|
public class EquipmentManagement extends MyBaseEntity {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键 ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
/**
|
* 设备编号
|
*/
|
@TableField(value = "equipment_id")
|
private String equipmentId;
|
/**
|
* 设备名称
|
*/
|
@TableField(value = "equipment_name")
|
private String equipmentName;
|
/**
|
* 数量
|
*/
|
@TableField(value = "quantity")
|
private Integer quantity;
|
/**
|
* 规格型号
|
*/
|
@TableField(value = "specification")
|
private String specification;
|
/**
|
* 使用状态
|
*/
|
@TableField(value = "usage_status")
|
private String usageStatus;
|
/**
|
* 使用部门
|
*/
|
@TableField(value = "using_department")
|
private String usingDepartment;
|
/**
|
* 使用人ID
|
*/
|
@TableField(value = "user_id")
|
private Long userId;
|
/**
|
* 存放位置
|
*/
|
@TableField(value = "storage_location")
|
private String storageLocation;
|
/**
|
* 采购日期
|
*/
|
@TableField(value = "purchase_date")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private LocalDate purchaseDate;
|
/**
|
* 采购价格
|
*/
|
@TableField(value = "purchase_price")
|
private BigDecimal purchasePrice;
|
}
|