package org.jeecg.modules.studytourOrder.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
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;

/**
 * @Description: 订单信息表
 * @Author: jeecg-boot
 * @Date:   2025-09-10
 * @Version: V1.0
 */
@ApiModel(value="studytour_order对象", description="订单信息表")
@Data
@TableName("studytour_order")
public class StudytourOrder 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)
    @ApiModelProperty(value = "真实姓名")
    private java.lang.String name;
	/**手机号码*/
	@Excel(name = "手机号码", width = 15)
    @ApiModelProperty(value = "手机号码")
    private java.lang.String phone;
	/**开始日期*/
	@Excel(name = "开始日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始日期")
    private java.util.Date startDate;
	/**结束日期*/
	@Excel(name = "结束日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束日期")
    private java.util.Date endDate;
	/**活动天数*/
	@Excel(name = "活动天数", width = 15)
    @ApiModelProperty(value = "活动天数")
    private java.lang.Integer dayNum;
	/**原价*/
	@Excel(name = "原价", width = 15)
    @ApiModelProperty(value = "原价")
    private java.math.BigDecimal priceOrigin;
	/**优惠价*/
	@Excel(name = "优惠价", width = 15)
    @ApiModelProperty(value = "优惠价")
    private java.math.BigDecimal priceDiscount;
	/**优惠券优惠金额*/
	@Excel(name = "优惠券优惠金额", width = 15)
    @ApiModelProperty(value = "优惠券优惠金额")
    private java.math.BigDecimal discount;
	/**支付金额*/
	@Excel(name = "支付金额", width = 15)
    @ApiModelProperty(value = "支付金额")
    private java.math.BigDecimal payAmount;
	/**支付时间*/
	@Excel(name = "支付时间", width = 15)
    @ApiModelProperty(value = "支付时间")
    private java.util.Date payTime;
	/**关联优惠券id*/
	@Excel(name = "关联优惠券id", width = 15)
    @ApiModelProperty(value = "关联优惠券id")
    private java.lang.String couponId;
	/**发票类型*/
	@Excel(name = "发票类型", width = 15, dicCode = "receipt_type")
    @Dict(dicCode = "receipt_type")
    @ApiModelProperty(value = "发票类型")
    private java.lang.String receiptId;
	/**订单状态*/
	@Excel(name = "订单状态", width = 15, dicCode = "order_status")
    @Dict(dicCode = "order_status")
    @ApiModelProperty(value = "订单状态")
    private java.lang.String status;
	/**活动标题*/
	@Excel(name = "活动标题", width = 15)
    @ApiModelProperty(value = "活动标题")
    private java.lang.String activityTitle;
	/**活动简介*/
	@Excel(name = "活动简介", width = 15)
    @ApiModelProperty(value = "活动简介")
    private java.lang.String activityBrief;
	/**活动标签*/
	@Excel(name = "活动标签", width = 15)
    @ApiModelProperty(value = "活动标签")
    private java.lang.String activityTag;
	/**关联活动*/
	@Excel(name = "关联活动", width = 15, dictTable = "studytour_activity", dicText = "title", dicCode = "id")
    @Dict(dictTable = "studytour_activity", dicText = "title", dicCode = "id")
    @ApiModelProperty(value = "关联活动")
    private java.lang.String activityId;
	/**关联用户*/
	@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;

    //出行人列表
    @TableField(exist = false)
    @ApiModelProperty(value = "出行人id(以;分隔)")
    String tourisIds;
}
