package com.bonus.zlpt.common.core.domain.order;

import java.math.BigDecimal;

import com.bonus.zlpt.common.core.annotation.Excel;
import com.bonus.zlpt.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 订单信息对象 ma_order_info
 * 
 * @author xsheng
 * @date 2023-12-01
 */
@Data
@ToString
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    /** 父id（续租原订单） */
    @Excel(name = "父id", readConverterExp = "续=租原订单")
    @ApiModelProperty(value = "父id")
    private Long pId;

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

    /** 订单日期 */
    @Excel(name = "订单日期")
    @ApiModelProperty(value = "订单日期")
    private String time;

    /** 订单结束日期 */
    @Excel(name = "订单结束日期")
    @ApiModelProperty(value = "订单结束日期")
    private String endTime;

    /** 订金 */
    @Excel(name = "订金")
    @ApiModelProperty(value = "订金")
    private BigDecimal deposit;

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

    /** 结算周期 */
    @Excel(name = "结算周期")
    @ApiModelProperty(value = "结算周期")
    private String payType;

    /** 供应商id */
    @Excel(name = "供应商id")
    @ApiModelProperty(value = "供应商id")
    private String supplier;

    /** 订单状态（待确认，待上传合同，待发货，已退货，待收货，进行中，临期，超期，驳回，退租申请，续租申请，完结） */
    @Excel(name = "订单状态", readConverterExp = "待确认，待上传合同，待发货，已退货，待收货，进行中，临期，超期，驳回，退租申请，续租申请，完结")
    @ApiModelProperty(value = "订单状态, 参考数据字典")
    private String orderStatus;

    /** 下单用户id */
    @Excel(name = "下单用户id")
    @ApiModelProperty(value = "下单用户id")
    private Long orderUser;

    /** 下单企业 */
    @Excel(name = "下单企业")
    @ApiModelProperty(value = "下单企业")
    private String orderCompany;
}
