1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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_return")
@Schema(name = "ProductBorrowReturn对象", description = "产品归还记录表")
public class ProductBorrowReturn implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;
 
    @Schema(description = "领用记录ID")
    private Long borrowId;
 
    @Schema(description = "产品规格ID")
    private Long productModelId;
 
    @Schema(description = "批号")
    private String batchNo;
 
    @Schema(description = "归还数量")
    private BigDecimal returnQuantity;
 
    @Schema(description = "归还人ID")
    private Long returnerId;
 
    @Schema(description = "归还人姓名")
    private String returnerName;
 
    @Schema(description = "归还时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime returnTime;
 
    @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;
}