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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
package com.ruoyi.stock.pojo;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.enums.ReviewStatusEnum;
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.LocalDate;
import java.time.LocalDateTime;
 
/**
 * <p>
 * 出库记录表
 * </p>
 *
 * @author 芯导软件(江苏)有限公司
 * @since 2026-01-21 05:27:04
 */
@Getter
@Setter
@TableName("stock_out_record")
@Schema(name = "StockOutRecord对象", description = "出库记录表")
public class StockOutRecord implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @Schema(description = "入库批次")
    private String outboundBatches;
 
    @Schema(description = "批号")
    private String batchNo;
 
    @Schema(description = "入库数量")
    private BigDecimal stockOutNum;
 
    @Schema(description = "入库来源id")
    private Long recordId;
 
    @Schema(description = "入库类型")
    private String recordType;
 
    @Schema(description = "出库类别:客存/代储/销售")
    private String outCategory;
 
    @Schema(description = "储库id")
    private Long oilDepotId;
 
    @Schema(description = "储库名称")
    private String oilDepotName;
 
    @Schema(description = "储罐id")
    private Long tankId;
 
    @Schema(description = "储罐号")
    private String tankNo;
 
    @Schema(description = "出库日期")
    private LocalDate outDate;
 
    @Schema(description = "油品")
    private String oilProduct;
 
    @Schema(description = "出库吨位(吨)")
    private BigDecimal outTonnage;
 
    @Schema(description = "客户id")
    private Long customerId;
 
    @Schema(description = "客户名称")
    private String customerName;
 
    @Schema(description = "客户对接人")
    private String contactPerson;
 
    @Schema(description = "对接人电话")
    private String contactPhone;
 
    @Schema(description = "车体/铅封检验是否正常")
    private String loadingInspectionStatus;
 
    @Schema(description = "装车鹤位")
    private String loadingCranePosition;
 
    @Schema(description = "装油关键环节与车辆关键位置拍照(JSON数组)")
    private String loadingPhotos;
 
    @Schema(description = "密度(kg/L)")
    private String density;
 
    @Schema(description = "毛重(吨)")
    private BigDecimal grossWeight;
 
    @Schema(description = "皮重(吨)")
    private BigDecimal tareWeight;
 
    @Schema(description = "净重(吨)")
    private BigDecimal netWeight;
 
    @Schema(description = "亏量(吨)")
    private BigDecimal lossQuantity;
 
    @Schema(description = "实际入库体积(升)")
    private BigDecimal actualVolume;
 
    @Schema(description = "磅单上传(JSON数组)")
    private String poundPhotos;
 
    @Schema(description = "司机姓名")
    private String driverName;
 
    @Schema(description = "司机电话")
    private String driverPhone;
 
    @Schema(description = "押运员姓名")
    private String escortName;
 
    @Schema(description = "押运员电话")
    private String escortPhone;
 
    @Schema(description = "车牌号")
    private String truckPlateNo;
 
    @Schema(description = "车挂牌号")
    private String trailerPlateNo;
 
    @Schema(description = "产品规格id")
    private Long productModelId;
 
    @Schema(description = "备注")
    private String remark;
 
    @Schema(description = "创建时间")
    @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;
 
    @Schema(description = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
 
    @Schema(description = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUser;
 
    @Schema(description = "类型  0合格入库 1不合格入库")
    private String type;
 
    @Schema(description = "审批状态  0-待审批 1-通过 2-驳回 3-销售出库待确认", implementation = ReviewStatusEnum.class)
    private Integer approvalStatus;
 
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
}