package com.jeequan.jeepay.db.entity;

import com.alibaba.fastjson.JSONObject;
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 com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.jeequan.jeepay.core.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 商户辅助终端信息报备表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "t_mch_store_terminal", autoResultMap = true)
public class MchStoreTerminal extends com.jeequan.jeepay.core.entity.MchStoreTerminal {

    private static final long serialVersionUID=1L;


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

    /**
     * 表ID
     */
    @TableId(value = "trm_id", type = IdType.AUTO)
    private Long trmId;


    /**
     * 渠道绑定管理 { ifCode:{ ifCode:"", ifCodeName: "", state: 1, errInfo: ""} }
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject channelBindInfo;


    @TableField(exist = false)
    private List<String> subAgentNoList;

    @TableField(exist = false)
    private String appName;

    @TableField(exist = false)
    private String contactTel;

    @TableField(exist = false)
    private String agentName;

    @TableField(exist = false)
    private String unionSearchId;

}
