package com.bonus.sharedstation.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 洗衣订单(WashClothingOrder)实体类
 *
 * @author makejava
 * @since 2024-12-13 11:00:13
 */
@Data
public class WashClothingOrder implements Serializable {
    private static final long serialVersionUID = -48000090274098667L;

    private Integer id;
    /**
     * 预约人姓名
     */
    private String name;
    /**
     * 消费金额
     */
    private Double usePrice;
    /**
     * 预约人 id
     */
    private String userId;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 所在单位
     */
    private String unit;
    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;
    /**
     * 备注（200字以内）
     */
    private String remarks;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
    /**
     * 修改人
     */
    private String updatedBy;
    /**
     * 逻辑删除标识，1表示已删除，0表示未删除
     */
    private String isDeleted;

    private String ordno;

    private Integer tenantId;
    /**
     * 预约 状态  0  已预约 1 取消预约
     */
    private String status;

    private String custId;

    /**
     * 订单信息
     */
    @TableField(exist = false)
    private List<WashClothingOrderInfo> orderInfoList;


    @Override
    public String toString() {
        return "WashClothingOrder{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", usePrice=" + usePrice +
                ", userId='" + userId + '\'' +
                ", phone='" + phone + '\'' +
                ", unit='" + unit + '\'' +
                ", orderTime=" + orderTime +
                ", remarks='" + remarks + '\'' +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedTime=" + updatedTime +
                ", updatedBy='" + updatedBy + '\'' +
                ", isDeleted='" + isDeleted + '\'' +
                ", tenantId=" + tenantId +
                ", status='" + status + '\'' +
                ", custId='" + custId + '\'' +
                '}';
    }
}

