注解@Data JavaBean省去get set 方法

Maven 引入

   org.projectlombok
   lombok
   1.16.22

 

import lombok.Data;
import java.io.Serializable;

@Data
public class CustomerInfoModel implements Serializable {
    private Long customerSubId;
    //客户表ID(集团客户存在多个子客户)
    private Long customerId;
    private String customerSubName;
    private String uniqId;
    //状态 0 无效 1 有效
    private Integer state;
    //手机号
    private String customerMobile;
    private String customerName;
    //客户类型 1.个人客户 2.集团客户
    private Integer customerType;
    //主账户
    private Long mainAccountId;
    //虚拟账户
    private Long virtualAccountId;

    public CustomerInfoModel(Long customerSubId, Long customerId, String customerSubName, String uniqId, Integer state, String customerMobile, String customerName, Integer customerType, Long mainAccountId, Long virtualAccountId) {
        this.customerSubId = customerSubId;
        this.customerId = customerId;
        this.customerSubName = customerSubName;
        this.uniqId = uniqId;
        this.state = state;
        this.customerMobile = customerMobile;
        this.customerName = customerName;
        this.customerType = customerType;
        this.mainAccountId = mainAccountId;
        this.virtualAccountId = virtualAccountId;
    }

    public CustomerInfoModel() {
    }

你可能感兴趣的:(注解@Data JavaBean省去get set 方法)