package com.jeesharp.business.modules.finance.merchantsettle.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 商户结算配置实体，映射表 {@code biz_merchant_settle_config}。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_merchant_settle_config")
@Schema(description = "商户结算配置")
public class MerchantSettleConfig extends BaseEntity<MerchantSettleConfig> {

    @Schema(description = "商户租户ID")
    private String merchantTenantId;

    /**
     * @see com.jeesharp.business.modules.finance.merchantsettle.enums.SettleModeEnum
     */
    @Schema(description = "结算模式：PLATFORM_COLLECT-平台代收 WECHAT_PROFIT_SHARING-微信分账")
    private String settleMode;

    @Schema(description = "平台佣金比例（0~1）")
    private BigDecimal commissionRate;

    @Schema(description = "微信特约子商户号（冗余）")
    private String subMchId;

    /**
     * @see com.jeesharp.business.modules.finance.merchantsettle.enums.MerchantSettleConfigStatusEnum
     */
    @Schema(description = "状态：0-禁用 1-启用")
    private Integer status;
}
