package com.bonus.canteen.core.supermarket.domain;

import java.math.BigDecimal;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 计量单位对象 supermarket_unit
 * 
 * @author xsheng
 * @date 2025-05-15
 */


@Data
@ToString
public class SupermarketUnit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long unitId;

    /** 区域id */
    @Excel(name = "区域id")
    @ApiModelProperty(value = "区域id")
    private Long areaId;

    /** 计量单位名称 */
    @Excel(name = "计量单位名称")
    @ApiModelProperty(value = "计量单位名称")
    private String unitName;

    /** 换算比率(换算成g) */
    @Excel(name = "换算比率(换算成g)")
    @ApiModelProperty(value = "换算比率(换算成g)")
    private BigDecimal rate;

    /** 单位类型(1-按份,2-称重) */
    @Excel(name = "单位类型(1-按份,2-称重)")
    @ApiModelProperty(value = "单位类型(1-按份,2-称重)")
    private Long weighType;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    @ApiModelProperty(value = "乐观锁")
    private Long revision;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;


}
