package com.aircraft.modules.order.domain;

import com.aircraft.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单主表
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("fms_od_order_main")
public class OrderMain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID主键
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单类型
     */
    private Integer orderType;

    /**
     * 订单发起人ID
     */
    private Long orderInitiatorId;

    /**
     * 客户电话
     */
    private String phone;

    /**
     * 区域ID
     */
    private Long areaId;

    /**
     * 景区ID
     */
    private Long attractionId;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 路线ID,多个用逗号分隔
     */
    private String routeIds;

    /**
     * 货物重量
     */
    private BigDecimal cargoWeight;
    /**
     * 订单总金额（附加费+计算重量的金额）
     */
    private BigDecimal totalAmount;

    /**
     * 计算重量的金额
     */
    private BigDecimal amount;

    /**
     * 额外费用
     */
    private BigDecimal surchargeAmount;

    /**
     * 微信用户唯一标识
     */
    private String openId;

    /**
     * 结算状态
     */
    private Integer settlementStatus;

    /**
     * 订单主单状态
     */
    private Integer mainOrderStatus;

    /**
     * 下单时间
     */
    private Date orderCreateTime;

    /**
     * 订单完成时间
     */
    private Date orderFinishTime;

    /**
     * 确认时间
     */
    private Date confirmTime;
}
