|
@@ -1,14 +1,11 @@
|
|
package com.boman.domain;
|
|
package com.boman.domain;
|
|
|
|
|
|
-import com.boman.common.core.utils.StringUtils;
|
|
|
|
-import com.boman.common.core.web.domain.BaseEntity;
|
|
|
|
-
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 代码生成业务字段表 gen_table_column
|
|
* 代码生成业务字段表 gen_table_column
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author ruoyi
|
|
* @author ruoyi
|
|
*/
|
|
*/
|
|
public class GenTableColumn extends BaseEntity
|
|
public class GenTableColumn extends BaseEntity
|
|
@@ -288,10 +285,10 @@ public class GenTableColumn extends BaseEntity
|
|
return javaField;
|
|
return javaField;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getCapJavaField()
|
|
|
|
- {
|
|
|
|
- return StringUtils.capitalize(javaField);
|
|
|
|
- }
|
|
|
|
|
|
+// public String getCapJavaField()
|
|
|
|
+// {
|
|
|
|
+// return StringUtils.capitalize(javaField);
|
|
|
|
+// }
|
|
|
|
|
|
public void setIsPk(String isPk)
|
|
public void setIsPk(String isPk)
|
|
{
|
|
{
|
|
@@ -303,15 +300,15 @@ public class GenTableColumn extends BaseEntity
|
|
return isPk;
|
|
return isPk;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isPk()
|
|
|
|
- {
|
|
|
|
- return isPk(this.isPk);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isPk()
|
|
|
|
+// {
|
|
|
|
+// return isPk(this.isPk);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isPk(String isPk)
|
|
|
|
- {
|
|
|
|
- return isPk != null && StringUtils.equals("1", isPk);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isPk(String isPk)
|
|
|
|
+// {
|
|
|
|
+// return isPk != null && StringUtils.equals("1", isPk);
|
|
|
|
+// }
|
|
|
|
|
|
public String getIsIncrement()
|
|
public String getIsIncrement()
|
|
{
|
|
{
|
|
@@ -323,15 +320,15 @@ public class GenTableColumn extends BaseEntity
|
|
this.isIncrement = isIncrement;
|
|
this.isIncrement = isIncrement;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isIncrement()
|
|
|
|
- {
|
|
|
|
- return isIncrement(this.isIncrement);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isIncrement()
|
|
|
|
+// {
|
|
|
|
+// return isIncrement(this.isIncrement);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isIncrement(String isIncrement)
|
|
|
|
- {
|
|
|
|
- return isIncrement != null && StringUtils.equals("1", isIncrement);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isIncrement(String isIncrement)
|
|
|
|
+// {
|
|
|
|
+// return isIncrement != null && StringUtils.equals("1", isIncrement);
|
|
|
|
+// }
|
|
|
|
|
|
public void setIsRequired(String isRequired)
|
|
public void setIsRequired(String isRequired)
|
|
{
|
|
{
|
|
@@ -343,15 +340,15 @@ public class GenTableColumn extends BaseEntity
|
|
return isRequired;
|
|
return isRequired;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isRequired()
|
|
|
|
- {
|
|
|
|
- return isRequired(this.isRequired);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isRequired()
|
|
|
|
+// {
|
|
|
|
+// return isRequired(this.isRequired);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isRequired(String isRequired)
|
|
|
|
- {
|
|
|
|
- return isRequired != null && StringUtils.equals("1", isRequired);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isRequired(String isRequired)
|
|
|
|
+// {
|
|
|
|
+// return isRequired != null && StringUtils.equals("1", isRequired);
|
|
|
|
+// }
|
|
|
|
|
|
public void setIsInsert(String isInsert)
|
|
public void setIsInsert(String isInsert)
|
|
{
|
|
{
|
|
@@ -363,15 +360,15 @@ public class GenTableColumn extends BaseEntity
|
|
return isInsert;
|
|
return isInsert;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isInsert()
|
|
|
|
- {
|
|
|
|
- return isInsert(this.isInsert);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isInsert()
|
|
|
|
+// {
|
|
|
|
+// return isInsert(this.isInsert);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isInsert(String isInsert)
|
|
|
|
- {
|
|
|
|
- return isInsert != null && StringUtils.equals("1", isInsert);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isInsert(String isInsert)
|
|
|
|
+// {
|
|
|
|
+// return isInsert != null && StringUtils.equals("1", isInsert);
|
|
|
|
+// }
|
|
|
|
|
|
public void setIsEdit(String isEdit)
|
|
public void setIsEdit(String isEdit)
|
|
{
|
|
{
|
|
@@ -383,15 +380,15 @@ public class GenTableColumn extends BaseEntity
|
|
return isEdit;
|
|
return isEdit;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isEdit()
|
|
|
|
- {
|
|
|
|
- return isInsert(this.isEdit);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isEdit()
|
|
|
|
+// {
|
|
|
|
+// return isInsert(this.isEdit);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isEdit(String isEdit)
|
|
|
|
- {
|
|
|
|
- return isEdit != null && StringUtils.equals("1", isEdit);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isEdit(String isEdit)
|
|
|
|
+// {
|
|
|
|
+// return isEdit != null && StringUtils.equals("1", isEdit);
|
|
|
|
+// }
|
|
|
|
|
|
public void setIsList(String isList)
|
|
public void setIsList(String isList)
|
|
{
|
|
{
|
|
@@ -403,15 +400,15 @@ public class GenTableColumn extends BaseEntity
|
|
return isList;
|
|
return isList;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isList()
|
|
|
|
- {
|
|
|
|
- return isList(this.isList);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isList()
|
|
|
|
+// {
|
|
|
|
+// return isList(this.isList);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isList(String isList)
|
|
|
|
- {
|
|
|
|
- return isList != null && StringUtils.equals("1", isList);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isList(String isList)
|
|
|
|
+// {
|
|
|
|
+// return isList != null && StringUtils.equals("1", isList);
|
|
|
|
+// }
|
|
|
|
|
|
public void setIsQuery(String isQuery)
|
|
public void setIsQuery(String isQuery)
|
|
{
|
|
{
|
|
@@ -423,15 +420,15 @@ public class GenTableColumn extends BaseEntity
|
|
return isQuery;
|
|
return isQuery;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isQuery()
|
|
|
|
- {
|
|
|
|
- return isQuery(this.isQuery);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isQuery()
|
|
|
|
+// {
|
|
|
|
+// return isQuery(this.isQuery);
|
|
|
|
+// }
|
|
|
|
|
|
- public boolean isQuery(String isQuery)
|
|
|
|
- {
|
|
|
|
- return isQuery != null && StringUtils.equals("1", isQuery);
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isQuery(String isQuery)
|
|
|
|
+// {
|
|
|
|
+// return isQuery != null && StringUtils.equals("1", isQuery);
|
|
|
|
+// }
|
|
|
|
|
|
public void setQueryType(String queryType)
|
|
public void setQueryType(String queryType)
|
|
{
|
|
{
|
|
@@ -473,53 +470,53 @@ public class GenTableColumn extends BaseEntity
|
|
return sort;
|
|
return sort;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean isSuperColumn()
|
|
|
|
- {
|
|
|
|
- return isSuperColumn(this.javaField);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public static boolean isSuperColumn(String javaField)
|
|
|
|
- {
|
|
|
|
- return StringUtils.equalsAnyIgnoreCase(javaField,
|
|
|
|
- // BaseEntity
|
|
|
|
- "createBy", "createTime", "updateBy", "updateTime", "remark",
|
|
|
|
- // TreeEntity
|
|
|
|
- "parentName", "parentId", "orderNum", "ancestors");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public boolean isUsableColumn()
|
|
|
|
- {
|
|
|
|
- return isUsableColumn(javaField);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public static boolean isUsableColumn(String javaField)
|
|
|
|
- {
|
|
|
|
- // isSuperColumn()中的名单用于避免生成多余Domain属性,若某些属性在生成页面时需要用到不能忽略,则放在此处白名单
|
|
|
|
- return StringUtils.equalsAnyIgnoreCase(javaField, "parentId", "orderNum", "remark");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String readConverterExp()
|
|
|
|
- {
|
|
|
|
- String remarks = StringUtils.substringBetween(this.columnComment, "(", ")");
|
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
|
- if (StringUtils.isNotEmpty(remarks))
|
|
|
|
- {
|
|
|
|
- for (String value : remarks.split(" "))
|
|
|
|
- {
|
|
|
|
- if (StringUtils.isNotEmpty(value))
|
|
|
|
- {
|
|
|
|
- Object startStr = value.subSequence(0, 1);
|
|
|
|
- String endStr = value.substring(1);
|
|
|
|
- sb.append("").append(startStr).append("=").append(endStr).append(",");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return sb.deleteCharAt(sb.length() - 1).toString();
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- return this.columnComment;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// public boolean isSuperColumn()
|
|
|
|
+// {
|
|
|
|
+// return isSuperColumn(this.javaField);
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+// public static boolean isSuperColumn(String javaField)
|
|
|
|
+// {
|
|
|
|
+// return StringUtils.equalsAnyIgnoreCase(javaField,
|
|
|
|
+// // BaseEntity
|
|
|
|
+// "createBy", "createTime", "updateBy", "updateTime", "remark",
|
|
|
|
+// // TreeEntity
|
|
|
|
+// "parentName", "parentId", "orderNum", "ancestors");
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+// public boolean isUsableColumn()
|
|
|
|
+// {
|
|
|
|
+// return isUsableColumn(javaField);
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+// public static boolean isUsableColumn(String javaField)
|
|
|
|
+// {
|
|
|
|
+// // isSuperColumn()中的名单用于避免生成多余Domain属性,若某些属性在生成页面时需要用到不能忽略,则放在此处白名单
|
|
|
|
+// return StringUtils.equalsAnyIgnoreCase(javaField, "parentId", "orderNum", "remark");
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+// public String readConverterExp()
|
|
|
|
+// {
|
|
|
|
+// String remarks = StringUtils.substringBetween(this.columnComment, "(", ")");
|
|
|
|
+// StringBuffer sb = new StringBuffer();
|
|
|
|
+// if (StringUtils.isNotEmpty(remarks))
|
|
|
|
+// {
|
|
|
|
+// for (String value : remarks.split(" "))
|
|
|
|
+// {
|
|
|
|
+// if (StringUtils.isNotEmpty(value))
|
|
|
|
+// {
|
|
|
|
+// Object startStr = value.subSequence(0, 1);
|
|
|
|
+// String endStr = value.substring(1);
|
|
|
|
+// sb.append("").append(startStr).append("=").append(endStr).append(",");
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// return sb.deleteCharAt(sb.length() - 1).toString();
|
|
|
|
+// }
|
|
|
|
+// else
|
|
|
|
+// {
|
|
|
|
+// return this.columnComment;
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
public List<SysDictData> getSysDictData() {
|
|
public List<SysDictData> getSysDictData() {
|
|
return sysDictData;
|
|
return sysDictData;
|