package com.aircraft.modules.order.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.aircraft.base.BaseEntity;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单结算详情主表
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("fms_od_settlement_detail")
public class SettlementDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 结算订单ID
     */
    @ApiModelProperty(value = "结算订单ID")
    private Long settlementMainId;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 订单类型
     */
    @ApiModelProperty(value = "订单类型")
    private Integer orderType;

    /**
     * 订单发起人ID
     */
    @ApiModelProperty(value = "订单发起人ID")
    private Long orderInitiatorId;

    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    private Long customerId;

    /**
     * 客户电话
     */
    @ApiModelProperty(value = "客户电话")
    private String phone;

    /**
     * 景区ID
     */
    @ApiModelProperty(value = "景区ID")
    private Long attractionId;

    /**
     * 路线ID
     */
    @ApiModelProperty(value = "路线ID,多个逗号拼接")
    private String routeIds;

    /**
     * 下单总金额
     */
    @ApiModelProperty(value = "下单总金额")
    private BigDecimal totalAmount;

    /**
     * 订单金额
     */
    @ApiModelProperty(value = "订单金额")
    private BigDecimal amount;

    /**
     * 额外费用
     */
    @ApiModelProperty(value = "额外费用")
    private BigDecimal surchargeAmount;

    /**
     * 结算状态
     */
    @ApiModelProperty(value = "结算状态")
    private Integer settlementStatus;

    /**
     * 订单主单状态
     */
    @ApiModelProperty(value = "订单主单状态")
    private Integer mainOrderStatus;

    /**
     * 下单时间
     */
    @ApiModelProperty(value = "下单时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderCreateTime;

    /**
     * 订单完成时间
     */
    @ApiModelProperty(value = "订单完成时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderFinishTime;

    /**
     * 重量
     */
    @ApiModelProperty(value = "重量")
    private BigDecimal cargoWeight;


}
