package com.sqx.modules.bl.order.entity;

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 java.io.Serializable;
import java.math.BigDecimal;

/**
 * @description bl_user_package_order_mapping
 * 用户-服务包-订单-服务包与订单映射关系表
 * @author caolei
 * @date 2024-06-09
 */
@Data
@TableName("bl_user_package_order_mapping")
public class UserPackageOrdersMapping implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * 订单服务id
     */
    private Long mappingId;

    /**
     * 订单id
     */
    private Long ordersId;

    /**
     * 服务包id
     */
    private Long packageId;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 名称
     */
    @TableField(exist = false)
    private String title;

    /**
     * 类型
     */
    @TableField(exist = false)
    private Integer type;

    /**
     * 原价
     */
    @TableField(exist = false)
    private BigDecimal oldPrice;

    /**
     * 现价
     */
    @TableField(exist = false)
    private BigDecimal price;

    /**
     * 图片
     */
    @TableField(exist = false)
    private String packageImg;

    /**
     * 内容
     */
    @TableField(exist = false)
    private String content;

    /**
     * 详细内容
     */
    @TableField(exist = false)
    private String contentImg;

    /**
     * 状态 1上 2下
     */
    @TableField(exist = false)
    private Integer status;

    /**
     * 加钟次数
     */
    @TableField(exist = false)
    private Integer addNum;

    /**
     * 好评率
     */
    @TableField(exist = false)
    private BigDecimal esteemRate;

    /**
     * 销量
     */
    @TableField(exist = false)
    private Integer sales;

    /**
     * 标签
     */
    @TableField(exist = false)
    private String labels;

    /**
     * 城市
     */
    @TableField(exist = false)
    private String city;

    /**
     * 创建时间
     */
    @TableField(exist = false)
    private String createTime;

    /**
     * 是否可用代金券 1是 2否
     */
    @TableField(exist = false)
    private Integer isCanCoupon;

    /**
     * 是否可用会员优惠 1是 2否
     */
    @TableField(exist = false)
    private Integer isCanVip;

    /**
     * 服务分类ID
     */
    @TableField(exist = false)
    private Long classifyId;

    /**
     * 类型名称
     */
    @TableField(exist = false)
    private String typeName;

    /**
     * 次数
     */
    @TableField(exist = false)
    private Integer serviceCount;

    /**
     * 疗程描述
     */
    @TableField(exist = false)
    private String intervalDaysStr;

    public UserPackageOrdersMapping() {}
}
