package com.sqx.modules.material.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @TableName material_record
 */
@TableName(value ="material_record")
@Data
public class MaterialRecord implements Serializable {
    private Integer id;
    //操作数量
    private BigDecimal number;
    //总量
    private BigDecimal total;
    //技师表id
    private Integer materialId;
    //类型 1.增加 2.减少
    private Integer type;
    //描述
    private String recordDescribe;
    /** 技师名称 */
    @TableField(exist = false)
    private String artificerName;
    @TableField(exist = false)
    private String startDate;
    @TableField(exist = false)
    private String endDate;
    @TableField(exist = false)
    private String materialName;
    /**
     * 技师id
     */
    @TableField(value = "artificer_id")
    private Integer artificerId;
    private Long createUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    private Long updateUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

    private static final long serialVersionUID = 1L;


}