package org.jeecg.modules.commonOrder.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 订单信息表
 * @Author: jeecg-boot
 * @Date:   2025-05-07
 * @Version: V1.0
 */
@Data
@TableName("common_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="common_order对象", description="订单信息表")
public class CommonOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**订单状态*/
	@Excel(name = "订单状态", width = 15, dicCode = "order_state")
	@Dict(dicCode = "order_state")
    @ApiModelProperty(value = "订单状态")
    private java.lang.String status;
	/**下单用户*/
	@Excel(name = "下单用户", width = 15, dictTable = "han_hai_member", dicText = "nick_name", dicCode = "id")
	@Dict(dictTable = "han_hai_member", dicText = "nick_name", dicCode = "id")
    @ApiModelProperty(value = "下单用户")
    private java.lang.String userId;
	/**订单图片*/
	@Excel(name = "订单图片", width = 15)
    @ApiModelProperty(value = "订单图片")
    private java.lang.String image;
	/**订单标题*/
	@Excel(name = "订单标题", width = 15)
    @ApiModelProperty(value = "订单标题")
    private java.lang.String title;
	/**客户姓名*/
	@Excel(name = "客户姓名", width = 15)
    @ApiModelProperty(value = "客户姓名")
    private java.lang.String name;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private java.lang.String phone;
	/**订单价格*/
	@Excel(name = "订单价格", width = 15)
    @ApiModelProperty(value = "订单价格")
    private java.math.BigDecimal price;
	/**配送地址*/
	@Excel(name = "配送地址", width = 15)
    @ApiModelProperty(value = "配送地址")
    private java.lang.String address;
	/**地址明细*/
	@Excel(name = "地址明细", width = 15)
    @ApiModelProperty(value = "地址明细")
    private java.lang.String addressDetail;
	/**直推佣金*/
	@Excel(name = "直推佣金", width = 15)
    @ApiModelProperty(value = "直推佣金")
    private java.math.BigDecimal oneMoney;
	/**间推佣金*/
	@Excel(name = "间推佣金", width = 15)
    @ApiModelProperty(value = "间推佣金")
    private java.math.BigDecimal twoMoney;


    private Integer num;
    /**材料*/
    @Excel(name = "材料", width = 15)
    @ApiModelProperty(value = "材料")
    private java.lang.String material;

    /**关联商品*/
    @Excel(name = "关联商品", width = 15)
    @ApiModelProperty(value = "关联商品")
    private java.lang.String shopId;

    /**父级节点*/
    @Excel(name = "父级节点", width = 15)
    @ApiModelProperty(value = "父级节点")
    private java.lang.String pid;
    /**是否有子节点*/
    @Excel(name = "是否有子节点", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private java.lang.String hasChild;



    @TableField (exist = false)
    private List<CommonOrder> children;
}
