Maven 引入 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.22</version> </dependency>
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() { }