package zy.cloud.wms.manager.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.core.common.Cools;
|
import com.core.common.SpringUtils;
|
import io.swagger.annotations.ApiModelProperty;
|
import zy.cloud.wms.system.entity.User;
|
import zy.cloud.wms.system.service.UserService;
|
|
import java.io.Serializable;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
@TableName("man_cstmr")
|
public class Cstmr implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 客户编号
|
*/
|
@ApiModelProperty(value= "客户编号")
|
private String uuid;
|
|
/**
|
* 客户名称
|
*/
|
@ApiModelProperty(value= "客户名称")
|
private String name;
|
|
/**
|
* 联系人
|
*/
|
@ApiModelProperty(value= "联系人")
|
private String contacts;
|
|
/**
|
* 联系电话
|
*/
|
@ApiModelProperty(value= "联系电话")
|
private String tel;
|
|
/**
|
* 联系地址
|
*/
|
@ApiModelProperty(value= "联系地址")
|
private String addr;
|
|
/**
|
* 状态 1: 正常 2: 禁用
|
*/
|
@ApiModelProperty(value= "状态 1: 正常 2: 禁用 ")
|
private Integer status;
|
|
/**
|
* 添加人员
|
*/
|
@ApiModelProperty(value= "添加人员")
|
@TableField("create_by")
|
private Long createBy;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("create_time")
|
private Date createTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("update_by")
|
private Long updateBy;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("update_time")
|
private Date updateTime;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
public Cstmr() {}
|
|
public Cstmr(String uuid,String name,String contacts,String tel,String addr,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
|
this.uuid = uuid;
|
this.name = name;
|
this.contacts = contacts;
|
this.tel = tel;
|
this.addr = addr;
|
this.status = status;
|
this.createBy = createBy;
|
this.createTime = createTime;
|
this.updateBy = updateBy;
|
this.updateTime = updateTime;
|
this.memo = memo;
|
}
|
|
// Cstmr cstmr = new Cstmr(
|
// null, // 客户编号[非空]
|
// null, // 客户名称
|
// null, // 联系人
|
// null, // 联系电话
|
// null, // 联系地址
|
// null, // 状态
|
// null, // 添加人员
|
// null, // 添加时间
|
// null, // 修改人员
|
// null, // 修改时间
|
// null // 备注
|
// );
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getUuid() {
|
return uuid;
|
}
|
|
public void setUuid(String uuid) {
|
this.uuid = uuid;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getContacts() {
|
return contacts;
|
}
|
|
public void setContacts(String contacts) {
|
this.contacts = contacts;
|
}
|
|
public String getTel() {
|
return tel;
|
}
|
|
public void setTel(String tel) {
|
this.tel = tel;
|
}
|
|
public String getAddr() {
|
return addr;
|
}
|
|
public void setAddr(String addr) {
|
this.addr = addr;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public String getStatus$(){
|
if (null == this.status){ return null; }
|
switch (this.status){
|
case 1:
|
return "正常";
|
case 2:
|
return "禁用";
|
default:
|
return String.valueOf(this.status);
|
}
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public Long getCreateBy() {
|
return createBy;
|
}
|
|
public String getCreateBy$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.createBy);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public void setCreateBy(Long createBy) {
|
this.createBy = createBy;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public String getCreateTime$(){
|
if (Cools.isEmpty(this.createTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Long getUpdateBy() {
|
return updateBy;
|
}
|
|
public String getUpdateBy$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.updateBy);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public void setUpdateBy(Long updateBy) {
|
this.updateBy = updateBy;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public String getUpdateTime$(){
|
if (Cools.isEmpty(this.updateTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getMemo() {
|
return memo;
|
}
|
|
public void setMemo(String memo) {
|
this.memo = memo;
|
}
|
|
|
}
|