package org.dromara.payment.operator.domain.bo;

import org.dromara.payment.operator.domain.BusOperator;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运营商业务对象 bus_operator
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusOperator.class, reverseConvertGenerate = false)
public class BusOperatorBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 运营商编号(示例：A10049)
     */
    //@NotBlank(message = "运营商编号(示例：A10049)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String no;

    /**
     * 运营商类型（1：企业，:2：个人）
     */
    @NotNull(message = "运营商类型（1：企业，:2：个人）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer dwType;

    /**
     * 运营商名称
     */
    @NotBlank(message = "运营商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 统一社会信用代码
     */
    @NotBlank(message = "统一社会信用代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nsrSbh;

    /**
     * 法人姓名
     */
    @NotBlank(message = "法人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fr;

    /**
     * 法人身份证
     */
    @NotBlank(message = "法人身份证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String frSfz;

    /**
     * 法人手机号
     */
    @NotBlank(message = "法人手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String frSjh;

    /**
     * 经办人姓名
     */
    @NotBlank(message = "经办人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wtr;

    /**
     * 经办人手机号
     */
    @NotBlank(message = "经办人手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wtrSjh;

    /**
     * 经办人身份证
     */
    @NotBlank(message = "经办人身份证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wtrSfz;

    /**
     * 经办人邮件
     */
    @NotBlank(message = "经办人邮件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wtrEmail;

    /**
     * 所属行政区编码
     */
    @NotBlank(message = "所属行政区编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitArea;

    /**
     * 行政区名称
     */
    @NotBlank(message = "行政区名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitAreaName;

    /**
     * 实际经营地址
     */
    @NotBlank(message = "实际经营地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 开户名
     */
    @NotBlank(message = "开户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String khm;

    /**
     * 开户账号
     */
    @NotBlank(message = "开户账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankCard;

    /**
     * 开户支行
     */
    @NotBlank(message = "开户支行不能为空", groups = { AddGroup.class, EditGroup.class })
    private String khd;

    /**
     * 开户行
     */
    @NotBlank(message = "开户行不能为空", groups = { AddGroup.class, EditGroup.class })
    private String khh;

    /**
     * 开户行行号/银联号
     */
    @NotBlank(message = "开户行行号/银联号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String khhNo;

    /**
     * 支付宝登录号(支持邮箱和手机号格式)
     */
//    @NotBlank(message = "支付宝登录号(支持邮箱和手机号格式)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alipayLogonId;

    /**
     * 法人身份证正面
     */
    @NotBlank(message = "法人身份证正面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String frSfzzm;

    /**
     * 法人身份证反面
     */
    @NotBlank(message = "法人身份证反面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String frSfzfm;

    /**
     * 银行卡正面
     */
//    @NotBlank(message = "银行卡正面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankZm;

    /**
     * 支付密码
     */
    //@NotBlank(message = "支付密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payPassword;

    /**
     * 密码输入错误次数
     */
    //@NotNull(message = "密码输入错误次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long passErrorNum;

    /**
     * 密码冻结结束时间
     */
    //@NotNull(message = "密码冻结结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date passFrozenTime;

    /**
     * 状态（0:禁用 1:启用 ）
     */
    //@NotNull(message = "状态（0:禁用 1:启用 ）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 发票抬头
     */
    @NotBlank(message = "发票抬头不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoceHeader;

    /**
     * 发票纳税人识别号
     */
    @NotBlank(message = "发票纳税人识别号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoceCreditCode;

    /**
     * 发票开户银行名称
     */
    @NotBlank(message = "发票开户银行名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoceBankName;

    /**
     * 发票开户银行账号
     */
    @NotBlank(message = "发票开户银行账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoceBankCard;

    /**
     * 发票单位注册地址
     */
    @NotBlank(message = "发票单位注册地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoceAddress;

    /**
     * 发票单位电话
     */
    @NotBlank(message = "发票单位电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoceDwdh;


    private String domain;

    private String yyzz;

    private String khxkz;

    private String jbrSfzzm;

    private String jbrSfzfm;
}
