fxkh-txl-service/src/main/java/com/whdc/model/entity/AddressBookOld.java

69 lines
1.9 KiB
Java
Raw Normal View History

package com.whdc.model.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.whdc.model.group.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* Description:
* Created by XuSan on 2024/6/11.
*
* @author XuSan
* @version 1.0
*/
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel(description = "通讯录")
@TableName("FXKH_TXL.ADDRESS_BOOK_OLD")
public class AddressBookOld extends Model<AddressBookOld> implements Serializable {
@TableId(value = "ID",type = IdType.AUTO)
@ApiModelProperty(value = "id")
@NotNull(message = "id不能为空" , groups = {Update.class})
private Integer id;
@Excel(name = "市", width = 20)
@TableField("CTNM")
@ApiModelProperty(value = "市")
private String ctnm;
@Excel(name = "区县", width = 20)
@TableField("CNNM")
@ApiModelProperty(value = "区县")
private String cnnm;
@Excel(name = "姓名", width = 20)
@TableField("NAME")
@ApiModelProperty(value = "姓名")
private String name;
@Excel(name = "职务", width = 50)
@TableField("POSITION")
@ApiModelProperty(value = "职务")
private String position;
@Excel(name = "手机号", width = 30)
@TableField("PHONE")
@ApiModelProperty(value = "手机号")
private String phone;
@Excel(name = "创建时间")
@TableField("CREATE_TIME")
@ApiModelProperty(value = "创建时间")
private String createTime;
}