package cn.pluss.platform.entity;

import cn.pluss.platform.config.mybatis.SqlConditionExtra;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商户收银点表
 * </p>
 *
 * @author Djh
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_merchant_cash_place")
public class MerchantCashPlace implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("logo")
    private String logo;

    /**
     * 用户id
     */
    @TableField("userId")
    private Long userId;

    /**
     * 收银点名称
     */
    @TableField("name")
    private String name;

    /**
     * 收银点code
     */
    private String code;

    /**
     * 收银点地址
     */
    @TableField("address")
    private String address;
    @TableField("bindingCode")
    private String bindingCode;


    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private String merchantCode;
    @TableField("root_account_id")
    private long rootAccountId;
    @TableField("pay_passage_id")
    private long payPassageId;
    @TableField("pay_passage_name")
    private String payPassageName;
    @TableField(exist = false)
    private Integer tab;
    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}