package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品绑定角色的分润金额
 *
 * @author 科技小王子
 * @since 2025-05-01 09:53:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopGoodsRoleCommission对象", description = "商品绑定角色的分润金额")
public class ShopGoodsRoleCommission implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer roleId;

    private Integer goodsId;

    private String sku;

    private BigDecimal amount;

    @Schema(description = "状态, 0正常, 1异常")
    private Integer status;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private Integer sortNumber;

}
