package com.inspect.metadata.bdconfig.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;

@Setter
@Getter
public class BasedataBdConfigMainSystem extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long mainSystemId;
    @Excel(
            name = "主系统编号"
    )
    private String mainSystemCode;
    @Excel(
            name = "主系统名称"
    )
    private String mainSystemName;
    @Excel(
            name = "厂家编号"
    )
    private String manufacturerCode;
    @Excel(
            name = "系统类型"
    )
    private String systemType;
    @Excel(
            name = "厂家名称"
    )
    private String manufacturerName;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "开始使用日期",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date startUseTime;
    @Excel(
            name = "设备是否转换，0：否；1：是"
    )
    private String convertFlag;
    @Excel(
            name = "ip地址"
    )
    private String ipAddr;
    @Excel(
            name = "端口"
    )
    private String port;
    @Excel(
            name = "用户"
    )
    private String username;
    @Excel(
            name = "密码"
    )
    private String password;
    private String delFlag;
    @Excel(
            name = "算法是否转换，0：否；1：是"
    )
    private String algConvertFlag;

    @Override
    public String toString() {
        return "BasedataBdConfigMainSystem{" +
                "mainSystemId=" + mainSystemId +
                ", mainSystemCode='" + mainSystemCode + '\'' +
                ", mainSystemName='" + mainSystemName + '\'' +
                ", manufacturerCode='" + manufacturerCode + '\'' +
                ", systemType='" + systemType + '\'' +
                ", manufacturerName='" + manufacturerName + '\'' +
                ", startUseTime=" + startUseTime +
                ", convertFlag='" + convertFlag + '\'' +
                ", ipAddr='" + ipAddr + '\'' +
                ", port='" + port + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", algConvertFlag='" + algConvertFlag + '\'' +
                '}';
    }
}
