package com.wzj.soopin.transaction.domain.po;


import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import org.dromara.common.core.domain.model.BaseAudit;

/**
 * 分账规则
 *
 * @author wzj
 * @date 2023-03-07
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description="分账规则")
@Data
@TableName("trans_divide_rule")
@Builder
public class DivideRule extends BaseAudit {

    /**
     * 主键
     */
    @Schema(description ="主键")
    @ExcelProperty(value = "主键", order = 1)
    @TableId
    private Long id;

    /**
     * 提现码
     */

    @Schema(description ="编号")
    @ExcelProperty(value = "编号", order = 2)
    private String code;


    @Schema(description ="名称")
    @ExcelProperty(value ="名称", order = 3)
    private String name;



    @Schema(description = "区域id")
    private Long regionId;


    /**
     * 手续费承担方式类型
     */
    @Schema(description = "手续费承担方式")
    private Integer feeType;


    /**
     * 状态
     */
    @Schema(description ="状态")
    @ExcelProperty(value ="状态", order = 7)
    private Integer status;
    /**
     * 类型
     */
    @Schema(description ="适用订单类型")
    @ExcelProperty(value ="类型", order = 8)
    private Integer type;

    @TableLogic(value = "0", delval = "1")
    @TableField(value = "del_flag", fill = FieldFill.INSERT, jdbcType = JdbcType.CHAR)
    private String delFlag;


}
