package com.ruoyi.stock.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
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.io.Serializable;
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* 产品领用表
|
*
|
* @author ruoyi
|
*/
|
@Data
|
@TableName("product_borrow")
|
@Schema(name = "ProductBorrow对象", description = "产品领用表")
|
public class ProductBorrow implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Schema(description = "主键")
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "领用单号")
|
private String borrowNo;
|
|
@Schema(description = "产品规格ID")
|
private Long productModelId;
|
|
@Schema(description = "批号")
|
private String batchNo;
|
|
@Schema(description = "领用数量")
|
private BigDecimal borrowQuantity;
|
|
@Schema(description = "已归还数量")
|
private BigDecimal returnedQuantity;
|
|
@Schema(description = "领用人ID")
|
private Long borrowerId;
|
|
@Schema(description = "领用人姓名")
|
private String borrowerName;
|
|
@Schema(description = "领用时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime borrowTime;
|
|
@Schema(description = "预计归还时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime expectedReturnTime;
|
|
@Schema(description = "审批状态(0-待审批,1-已通过,2-已驳回)")
|
private Integer approvalStatus;
|
|
@Schema(description = "归还状态(0-未归还,1-部分归还,2-已全部归还)")
|
private Integer status;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
@Schema(description = "租户ID")
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
@Schema(description = "部门ID")
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
|
@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)
|
private Integer updateUser;
|
|
@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;
|
}
|