package com.ruoyi.stock.pojo;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
|
/**
|
* 库存盘点主表
|
*/
|
@Data
|
@TableName("stock_check_main")
|
@Schema(name = "StockCheckMain", description = "库存盘点主表")
|
public class StockCheckMain implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
@Excel(name = "盘点单号")
|
@Schema(description = "盘点单号")
|
private String checkNo;
|
|
@Excel(name = "盘点名称")
|
@Schema(description = "盘点名称")
|
private String checkName;
|
|
@Excel(name = "盘点日期", width = 30, dateFormat = "yyyy-MM-dd")
|
@Schema(description = "盘点日期")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private LocalDate checkDate;
|
|
@Excel(name = "盘点人")
|
@Schema(description = "盘点人")
|
private String checker;
|
|
@Excel(name = "状态", readConverterExp = "0=盘点中,1=已完成,2=已取消")
|
@Schema(description = "状态 0盘点中 1已完成 2已取消")
|
private Integer status;
|
|
@Excel(name = "盘点种类数")
|
@Schema(description = "盘点种类数")
|
private Integer totalKinds;
|
|
@Excel(name = "差异种类数")
|
@Schema(description = "差异种类数")
|
private Integer diffKinds;
|
|
@Excel(name = "备注")
|
@Schema(description = "备注")
|
private String remark;
|
|
@TableField(exist = false)
|
@Schema(description = "创建时间起(查询参数)")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime beginTime;
|
|
@TableField(exist = false)
|
@Schema(description = "创建时间止(查询参数)")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime endTime;
|
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime createTime;
|
|
@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)
|
private Long createUser;
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Long updateUser;
|
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
}
|