|
@@ -1,10 +1,14 @@
|
|
|
-package com.ruoyi.basicData.domain;
|
|
|
-import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
-import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
+package com.ruoyi.common.core.domain.entity;
|
|
|
+
|
|
|
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 java.math.BigDecimal;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 仓库对象 t_warehouse
|
|
@@ -19,6 +23,23 @@ public class TWarehouse extends BaseEntity
|
|
|
/** $column.columnComment */
|
|
|
private Long fId;
|
|
|
|
|
|
+ /**
|
|
|
+ * 父部门ID
|
|
|
+ */
|
|
|
+ private Long parentId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 祖级列表
|
|
|
+ */
|
|
|
+ private String ancestors;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 显示顺序
|
|
|
+ */
|
|
|
+ private String orderNum;
|
|
|
+
|
|
|
+
|
|
|
/** 编号 */
|
|
|
@Excel(name = "编号")
|
|
|
private String fNo;
|
|
@@ -54,11 +75,44 @@ public class TWarehouse extends BaseEntity
|
|
|
/** 删除状态 */
|
|
|
private String delFlag;
|
|
|
|
|
|
+ /**
|
|
|
+ * 子部门
|
|
|
+ */
|
|
|
+ private List<TWarehouse> children = new ArrayList<TWarehouse>();
|
|
|
+
|
|
|
+
|
|
|
public void setfId(Long fId)
|
|
|
{
|
|
|
this.fId = fId;
|
|
|
}
|
|
|
|
|
|
+ public Long getParentId() {
|
|
|
+ return parentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setParentId(Long parentId) {
|
|
|
+ this.parentId = parentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAncestors() {
|
|
|
+ return ancestors;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAncestors(String ancestors) {
|
|
|
+ this.ancestors = ancestors;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @NotBlank(message = "显示顺序不能为空")
|
|
|
+ public String getOrderNum() {
|
|
|
+ return orderNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrderNum(String orderNum) {
|
|
|
+ this.orderNum = orderNum;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public Long getfId()
|
|
|
{
|
|
|
return fId;
|
|
@@ -142,6 +196,14 @@ public class TWarehouse extends BaseEntity
|
|
|
this.fCharg = fCharg;
|
|
|
}
|
|
|
|
|
|
+ public List<TWarehouse> getChildren() {
|
|
|
+ return children;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setChildren(List<TWarehouse> children) {
|
|
|
+ this.children = children;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|