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.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* 备件出入库流水
|
*
|
* @author :yys
|
*/
|
@Getter
|
@Setter
|
@TableName("spare_parts_record")
|
@Schema(name = "SparePartsRecord对象", description = "备件出入库流水")
|
public class SparePartsRecord implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "备件id")
|
private Long sparePartsId;
|
|
@Schema(description = "方向 1入库 2出库")
|
private Integer direction;
|
|
@Schema(description = "数量")
|
private BigDecimal quantity;
|
|
@Schema(description = "来源类型 1采购入库 2维修领用 3保养领用")
|
private Integer sourceType;
|
|
@Schema(description = "来源单据id")
|
private Long sourceId;
|
|
@Schema(description = "来源单号")
|
private String sourceNo;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
@Schema(description = "备件名称")
|
@TableField(exist = false)
|
private String sparePartsName;
|
|
@Schema(description = "租户id")
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
@Schema(description = "创建人")
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
@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_UPDATE)
|
private Integer updateUser;
|
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
}
|