package com.jeeplus.hotelorder.dish.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeeplus.core.domain.BaseEntity;
import com.jeeplus.core.query.Query;
import com.jeeplus.core.query.QueryType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 菜品规格选项实体
 * @author jeeplus
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "hotel_dish_spec_option")
public class HotelDishSpecOption extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 关联规格组ID */
    @Query(tableColumn = "group_id", type = QueryType.EQ)
    private String groupId;

    /** 选项名称(如:三分熟、黑椒汁) */
    private String optionName;

    /** 加价金额 */
    private BigDecimal priceExtra;

    /** 排序号 */
    private Integer sortOrder;
}
