package com.jeeplus.psimanage.dishManage.domain;

import com.baomidou.mybatisplus.annotation.TableField;
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 java.math.BigDecimal;

/**
 * 菜品库
 */
@Data
@TableName("psi_dish_library")
public class PsiDishLibrary extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品编码
     */
    @Query(tableColumn = "a.dish_code", type = QueryType.LIKE)
    private String dishCode;

    /**
     * 菜品名称
     */
    @Query(tableColumn = "a.dish_name", type = QueryType.LIKE)
    private String dishName;

    /**
     * 分类ID
     */
    private String typeId;

    /**
     * 菜品图片
     */
    private String imageUrl;

    /**
     * 单位
     */
    private String unit;

    /**
     * 规格
     */
    private String spec;

    /**
     * 销售价
     */
    private BigDecimal salePrice;

    /**
     * 参考成本价
     */
    private BigDecimal costPrice;

    /**
     * 口味
     */
    private String taste;

    /**
     * 状态：0启用，1停用
     */
    private String status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remarks;

    @TableField(exist = false)
    private String typeName;

    @TableField(exist = false)
    private String createName;
}
