package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 发货单
 *
 * @author 科技小王子
 * @since 2025-01-11 10:45:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopOrderDelivery对象", description = "发货单")
public class ShopOrderDelivery implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "发货单ID")
    @TableId(value = "delivery_id", type = IdType.AUTO)
    private Integer deliveryId;

    @Schema(description = "订单ID")
    private Integer orderId;

    @Schema(description = "发货方式(10手动录入 20无需物流 30电子面单)")
    private Integer deliveryMethod;

    @Schema(description = "打包方式(废弃)")
    private Integer packMethod;

    @Schema(description = "物流公司ID")
    private Integer expressId;

    @Schema(description = "物流单号")
    private String expressNo;

    @Schema(description = "电子面单模板内容")
    private String eorderHtml;

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
