package com.ruoyi.measuringinstrumentledger.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; import lombok.Setter; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.time.LocalDateTime; /** *
* *
* * @author 芯导软件(江苏)有限公司 * @since 2026-04-02 03:59:56 */ @Getter @Setter @TableName("spare_parts_requisition_record") @Schema(name = "SparePartsRequisitionRecord对象", description = "") public class SparePartsRequisitionRecord implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @Schema(description = "来源类型(0 维修 1 保养)") private Integer sourceType; @Schema(description = "来源id") private Long sourceId; @Schema(description = "设备id") private Long deviceLedgerId; @Schema(description = "备件id") private Long sparePartsId; @Schema(description = "数量") private Integer quantity; @Schema(description = "创建人") @TableField(fill = FieldFill.INSERT) private Integer createUser; @Schema(description = "租户id") @TableField(fill = FieldFill.INSERT) private Long tenantId; @Schema(description = "录入时间") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @Schema(description = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; @TableField(fill = FieldFill.INSERT) private Long deptId; }