package com.ruoyi.system.model; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; /** *
* 资产主表 *
* * @author WuGuanFengYue * @since 2025-09-15 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("asset_main") @ApiModel(value="AssetMain对象", description="资产主表") public class AssetMain implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键") @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty(value = "审批申请记录ID") @TableField("approval_application_id") private Integer approvalApplicationId; @ApiModelProperty(value = "资产原编码") @TableField("asset_original_code") private String assetOriginalCode; @ApiModelProperty(value = "资产编码(系统生成)") @TableField("asset_code") private String assetCode; @ApiModelProperty(value = "资产名称") @TableField("asset_name") private String assetName; @ApiModelProperty(value = "规格型号") @TableField("specification_model") private String specificationModel; @ApiModelProperty(value = "资产类别ID,关联asset_type表") @TableField("asset_type_id") private Integer assetTypeId; @ApiModelProperty(value = "类别名称(冗余字段)") @TableField("asset_category") private String assetCategory; @ApiModelProperty(value = "资产主类型:0-通用资产,1-房产资产,2-车辆资产") @TableField("asset_main_type") private Integer assetMainType; @ApiModelProperty(value = "计量单位") @TableField("measurement_unit") private String measurementUnit; @ApiModelProperty(value = "数量") @TableField("quantity") private BigDecimal quantity; @ApiModelProperty(value = "单价") @TableField("unit_price") private BigDecimal unitPrice; @ApiModelProperty(value = "总价值(数量*单价)") @TableField("total_value") private BigDecimal totalValue; @ApiModelProperty(value = "使用年限(年)") @TableField("useful_life") private Integer usefulLife; @ApiModelProperty(value = "权属单位/部门ID") @TableField("ownership_dept_id") private Integer ownershipDeptId; @ApiModelProperty(value = "使用人") @TableField("user_name") private String userName; @ApiModelProperty(value = "使用部门/位置ID") @TableField("use_dept_id") private Integer useDeptId; @ApiModelProperty(value = "仓库ID,关联warehouse表") @TableField("warehouse_id") private Integer warehouseId; @ApiModelProperty(value = "仓库名称(冗余字段)") @TableField("warehouse_name") private String warehouseName; @ApiModelProperty(value = "所在位置") @TableField("address") private String address; @ApiModelProperty(value = "资产状态") @TableField("asset_status") private String assetStatus; @ApiModelProperty(value = "备注") @TableField("remarks") private String remarks; @ApiModelProperty(value = "入账状态") @TableField("accounting_status") private String accountingStatus; @ApiModelProperty(value = "入账时间") @TableField("accounting_date") private LocalDate accountingDate; @ApiModelProperty(value = "会计凭证号") @TableField("accounting_voucher_no") private String accountingVoucherNo; @ApiModelProperty(value = "会计科目") @TableField("accounting_subject") private String accountingSubject; @ApiModelProperty(value = "入账金额") @TableField("accounting_amount") private BigDecimal accountingAmount; @ApiModelProperty(value = "附件URL列表(多个附件使用英文逗号拼接)") @TableField("attachment_urls") private String attachmentUrls; @ApiModelProperty(value = "创建时间") @TableField("create_time") private LocalDateTime createTime; @ApiModelProperty(value = "创建人") @TableField("create_by") private String createBy; @ApiModelProperty(value = "更新时间") @TableField("update_time") private LocalDateTime updateTime; @ApiModelProperty(value = "更新人") @TableField("update_by") private String updateBy; @ApiModelProperty(value = "是否删除 0-否,1-是") @TableField("disabled") private Boolean disabled; }