src/main/java/com/ruoyi/stock/pojo/StockInRecord.java
@@ -2,8 +2,8 @@
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.enums.ReviewStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -12,7 +12,7 @@
@Data
@TableName("stock_in_record")
@ApiModel("入库管理")
@Schema(name = "入库管理")
public class StockInRecord {
    private static final long serialVersionUID = 1L;
@@ -22,43 +22,141 @@
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "入库批次")
    @Schema(description = "入库批次")
    private String inboundBatches;
    @ApiModelProperty(value = "入库数量")
    @Schema(description = "入库数量")
    private BigDecimal stockInNum;
    @ApiModelProperty(value = "记录类型")
    @Schema(description = "批号")
    private String batchNo;
    @Schema(description = "记录类型  枚举")
    private String recordType;
    @ApiModelProperty(value = "记录ID")
    @Schema(description = "记录ID  ")
    private Long recordId;
    @ApiModelProperty(value = "产品规格ID")
    @Schema(description = "产品规格ID")
    private Long productModelId;
    @ApiModelProperty(value = "备注")
    @Schema(description = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "预警数量")
    private BigDecimal warnNum;
    @Schema(description = "入库油库id")
    private Long oilDepotId;
    @Schema(description = "入库名称(油库名称)")
    private String oilDepotName;
    @Schema(description = "入库类别:自购入库/代储入库")
    private String inboundCategory;
    @Schema(description = "储罐id")
    private Long tankId;
    @Schema(description = "储罐号")
    private String tankNo;
    @Schema(description = "入库时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inboundTime;
    @Schema(description = "油品:汽#92、汽#95、柴#0、柴#-35")
    private String oilProduct;
    @Schema(description = "原厂数量(吨)")
    private BigDecimal originalQuantity;
    @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 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 = "车体/铅封检验是否正常:正常/异常")
    private String tankInspectionStatus;
    @Schema(description = "卸车鹤位:1#撬装/2#撬装/临时泵")
    private String unloadingCranePosition;
    @Schema(description = "密度(kg/L)")
    private String density;
    @Schema(description = "卸油关键环节与车辆关键位置拍照(JSON数组)")
    private String unloadPhotos;
    @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 = "类型  0合格入库 1不合格入库")
    private String type;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "创建用户")
    @Schema(description = "创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
    @ApiModelProperty(value = "修改时间")
    @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;
    @ApiModelProperty(value = "修改用户")
    @Schema(description = "修改用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUser;
    @ApiModelProperty(value = "租户ID")
    @Schema(description = "审批状态  0-待审批 1-通过 2-驳回", implementation = ReviewStatusEnum.class)
    private Integer approvalStatus;
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
    private Long deptId;
}