All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcElectronicAccountDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_electronic_account")
@ApiModel(value="CcElectronicAccountDO", description="CcElectronicAccount")
public class CcElectronicAccountDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 用户编号
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 外部用户编号
     */
    @TableField("external_userid")
    private String externalUserid;
    /**
     * 账户类型:1=杉德云账户,2=连连支付,3=首信易,4=合利宝,5=易宝云账户
     */
    @TableField("type")
    private Integer type;
    /**
     * 商户编号
     */
    @TableField("merchant_id")
    private String merchantId;
    /**
     * 电子账户编号
     */
    @TableField("eid")
    private String eid;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 状态:0=申请中,1=成功,2=失败
     */
    @TableField("status")
    private Integer status;
    /**
     * 通知元数据 json字符串
     */
    @TableField("ori_txt")
    private String oriTxt;
    /**
     * mobile
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 姓名
     */
    @TableField("name")
    private String name;
    /**
     * 证件号码
     */
    @TableField("idcard")
    private String idcard;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcElectronicAccountVO toVO(CcElectronicAccountDO ccElectronicAccountDO) {
        if(ccElectronicAccountDO == null){
            return null;
        }
        CcElectronicAccountVO ccElectronicAccountVO = new CcElectronicAccountVO();
        BeanUtils.copyProperties(ccElectronicAccountDO, ccElectronicAccountVO);
        return ccElectronicAccountVO;
    }

    public static CcElectronicAccountDO toDO(CcElectronicAccountAddDTO ccElectronicAccountAddDTO) {
        if (ccElectronicAccountAddDTO == null) {
            return null;
        }
        CcElectronicAccountDO ccElectronicAccountDO = new CcElectronicAccountDO();
        BeanUtils.copyProperties(ccElectronicAccountAddDTO, ccElectronicAccountDO);
        return ccElectronicAccountDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy