|
@@ -1,15 +1,17 @@
|
|
|
-package com.ruoyi.system.domain;
|
|
|
+package com.ruoyi.common.core.domain.entity;
|
|
|
|
|
|
-import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
-import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
import com.ruoyi.common.annotation.Excel;
|
|
|
import com.ruoyi.common.core.domain.BaseEntity;
|
|
|
+import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
+import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
|
|
|
/**
|
|
|
- * 租户信息对象 sys_tenant
|
|
|
+ * 部门表 sys_tenant
|
|
|
*
|
|
|
* @author ruoyi
|
|
|
- * @date 2023-06-03
|
|
|
*/
|
|
|
public class SysTenant extends BaseEntity
|
|
|
{
|
|
@@ -23,7 +25,7 @@ public class SysTenant extends BaseEntity
|
|
|
private String tenantName;
|
|
|
|
|
|
/** 租户编号(公司统一信用代码) */
|
|
|
- @Excel(name = "租户编号", readConverterExp = "公=司统一信用代码")
|
|
|
+ @Excel(name = "租户编号", readConverterExp = "公司统一信用代码")
|
|
|
private String tenantCode;
|
|
|
|
|
|
/** 负责人 */
|
|
@@ -38,74 +40,69 @@ public class SysTenant extends BaseEntity
|
|
|
@Excel(name = "地址")
|
|
|
private String address;
|
|
|
|
|
|
- /** 是否删除(0:未删除,1已删除) */
|
|
|
+ /** 删除标志(0代表存在 1代表删除) */
|
|
|
@Excel(name = "是否删除(0:未删除,1已删除)")
|
|
|
private String isDel;
|
|
|
|
|
|
- public void setTenantId(Long tenantId)
|
|
|
- {
|
|
|
- this.tenantId = tenantId;
|
|
|
- }
|
|
|
-
|
|
|
- public Long getTenantId()
|
|
|
- {
|
|
|
+ public Long getTenantId() {
|
|
|
return tenantId;
|
|
|
}
|
|
|
- public void setTenantName(String tenantName)
|
|
|
- {
|
|
|
- this.tenantName = tenantName;
|
|
|
+
|
|
|
+ public void setTenantId(Long tenantId) {
|
|
|
+ this.tenantId = tenantId;
|
|
|
}
|
|
|
|
|
|
- public String getTenantName()
|
|
|
- {
|
|
|
+ @NotBlank(message = "租户名称不能为空")
|
|
|
+ @Size(min = 0, max = 100, message = "租户名称长度不能超过100个字符")
|
|
|
+ public String getTenantName() {
|
|
|
return tenantName;
|
|
|
}
|
|
|
- public void setTenantCode(String tenantCode)
|
|
|
- {
|
|
|
- this.tenantCode = tenantCode;
|
|
|
+ public void setTenantName(String tenantName) {
|
|
|
+ this.tenantName = tenantName;
|
|
|
}
|
|
|
|
|
|
- public String getTenantCode()
|
|
|
- {
|
|
|
+ @NotBlank(message = "租户编号不能为空")
|
|
|
+ @Size(min = 18, max = 18, message = "租户编号18个字符(公司统一信用代码)")
|
|
|
+ public String getTenantCode() {
|
|
|
return tenantCode;
|
|
|
}
|
|
|
- public void setOwner(String owner)
|
|
|
- {
|
|
|
- this.owner = owner;
|
|
|
+
|
|
|
+ public void setTenantCode(String tenantCode) {
|
|
|
+ this.tenantCode = tenantCode;
|
|
|
}
|
|
|
|
|
|
- public String getOwner()
|
|
|
- {
|
|
|
+ public String getOwner() {
|
|
|
return owner;
|
|
|
}
|
|
|
- public void setContactInfo(String contactInfo)
|
|
|
- {
|
|
|
- this.contactInfo = contactInfo;
|
|
|
+
|
|
|
+ public void setOwner(String owner) {
|
|
|
+ this.owner = owner;
|
|
|
}
|
|
|
|
|
|
- public String getContactInfo()
|
|
|
- {
|
|
|
+ public String getContactInfo() {
|
|
|
return contactInfo;
|
|
|
}
|
|
|
- public void setAddress(String address)
|
|
|
- {
|
|
|
- this.address = address;
|
|
|
+
|
|
|
+ public void setContactInfo(String contactInfo) {
|
|
|
+ this.contactInfo = contactInfo;
|
|
|
}
|
|
|
|
|
|
- public String getAddress()
|
|
|
- {
|
|
|
+ public String getAddress() {
|
|
|
return address;
|
|
|
}
|
|
|
- public void setIsDel(String isDel)
|
|
|
- {
|
|
|
- this.isDel = isDel;
|
|
|
+
|
|
|
+ public void setAddress(String address) {
|
|
|
+ this.address = address;
|
|
|
}
|
|
|
|
|
|
- public String getIsDel()
|
|
|
- {
|
|
|
+ public String getIsDel() {
|
|
|
return isDel;
|
|
|
}
|
|
|
|
|
|
+ public void setIsDel(String isDel) {
|
|
|
+ this.isDel = isDel;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
@@ -115,9 +112,11 @@ public class SysTenant extends BaseEntity
|
|
|
.append("owner", getOwner())
|
|
|
.append("contactInfo", getContactInfo())
|
|
|
.append("address", getAddress())
|
|
|
+ .append("isDel", getIsDel())
|
|
|
.append("createBy", getCreateBy())
|
|
|
.append("createTime", getCreateTime())
|
|
|
- .append("isDel", getIsDel())
|
|
|
+ .append("updateBy", getUpdateBy())
|
|
|
+ .append("updateTime", getUpdateTime())
|
|
|
.toString();
|
|
|
}
|
|
|
}
|