package com.jeequan.jeepay.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商户分账接收者账号绑定关系表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2021-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_mch_division_receiver")
public class MchDivisionReceiver extends com.jeequan.jeepay.core.entity.MchDivisionReceiver {

    private static final long serialVersionUID=1L;



    //gw
    public static final LambdaQueryWrapper<MchDivisionReceiver> gw(){
        return new LambdaQueryWrapper<>();
    }

    /**
     * 分账接收者ID
     */
    @TableId(value = "receiver_id", type = IdType.AUTO)
    private Long receiverId;


    /**
     * 是否按照扩展分账金额分账
     */
    @TableField(exist = false)
    private Boolean isExtDivAmt;


    public Boolean getExtDivAmt() {
        if(this.isExtDivAmt == null){
            return false;
        }
        return isExtDivAmt;
    }


}
