package cn.iocoder.yudao.module.member.dal.dataobject.order;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 会员订单 DO
 *
 * @author 开发账号
 */
@TableName("member_dish_order")
@KeySequence("member_order_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DishOrderDO extends BaseDO {

    public final static String COMPLETE = "1"; //完成
    public final static String INCOMPLETE = "0"; //未完成
    public final static String TOCOMPLETE = "2"; //未完全支付
    public final static String ABNORMAL = "3"; //异常


    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 门店Id
     */
    private Long storeId;
    /**
     * 门店名
     */
    private String storeName;
    /**
     * 订单状态
     */
    private String orderStatus;
    /**
     * 总价
     */
    private BigDecimal totalMoney;

    /**
     * 用户
     */
    private Long userId;
    /**
     * 支付方式
     */
    private String payMethods;

    /**
     * 餐盘编号
     */
    private String diningPlatesNum;

    /**
     * 赠送金额
     */
    private BigDecimal giftAmount;

    /**
     * 现金金额
     */
    private BigDecimal cashAmount;

    /**
     * 微信充值金额
     */
    private BigDecimal wxAmount;

    /**
     * 减免状态
     */
    private String reductionState;

    /**
     * 减免金额
     */
    private BigDecimal reductionAmount;

    /**
     * 待支付金额
     */
    private BigDecimal payAmount;
    /**
     * 最大退款金额
     */
    private BigDecimal refundAmount;

    private String faceData;

    private Boolean billingExist;

    private String billingNum;

    /**
     * 补贴金额
     */
    private BigDecimal subsidyAmount;

    private String transferState;

    private LocalDateTime transferTime;
}