DeliveryRecord.java 1.34 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import vion.dto.DeliveryRecordDTO;
import vion.vo.DeliveryRecordVO;

import java.util.Date;

/**
 * 发货记录表
 */
@Data
@TableName(value = "tbl_delivery_record")
@AutoMappers({
        @AutoMapper(target = DeliveryRecordVO.class),
        @AutoMapper(target = DeliveryRecordDTO.class),
})
public class DeliveryRecord {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 合同编号
     */
    @TableField(value = "contract_no")
    private String contractNo;

    /**
     * 项目id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 客户名称
     */
    @TableField(value = "customer_name")
    private String customerName;

    /**
     * 发货日期
     */
    @TableField(value = "ship_date")
    private Date shipDate;

    /**
     * 到货签收日期
     */
    @TableField(value = "sign_date")
    private Date signDate;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}