|
@@ -1,14 +1,11 @@
|
|
|
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.Map;
|
|
|
|
|
|
|
|
|
* 代码生成业务字段表 gen_table_column
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
*/
|
|
|
public class GenTableColumn extends BaseEntity
|
|
@@ -288,10 +285,10 @@ public class GenTableColumn extends BaseEntity
|
|
|
return javaField;
|
|
|
}
|
|
|
|
|
|
- public String getCapJavaField()
|
|
|
- {
|
|
|
- return StringUtils.capitalize(javaField);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setIsPk(String isPk)
|
|
|
{
|
|
@@ -303,15 +300,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
return isPk;
|
|
|
}
|
|
|
|
|
|
- public boolean isPk()
|
|
|
- {
|
|
|
- return isPk(this.isPk);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isPk(String isPk)
|
|
|
- {
|
|
|
- return isPk != null && StringUtils.equals("1", isPk);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public String getIsIncrement()
|
|
|
{
|
|
@@ -323,15 +320,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
this.isIncrement = isIncrement;
|
|
|
}
|
|
|
|
|
|
- public boolean isIncrement()
|
|
|
- {
|
|
|
- return isIncrement(this.isIncrement);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isIncrement(String isIncrement)
|
|
|
- {
|
|
|
- return isIncrement != null && StringUtils.equals("1", isIncrement);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setIsRequired(String isRequired)
|
|
|
{
|
|
@@ -343,15 +340,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
return isRequired;
|
|
|
}
|
|
|
|
|
|
- public boolean isRequired()
|
|
|
- {
|
|
|
- return isRequired(this.isRequired);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isRequired(String isRequired)
|
|
|
- {
|
|
|
- return isRequired != null && StringUtils.equals("1", isRequired);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setIsInsert(String isInsert)
|
|
|
{
|
|
@@ -363,15 +360,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
return isInsert;
|
|
|
}
|
|
|
|
|
|
- public boolean isInsert()
|
|
|
- {
|
|
|
- return isInsert(this.isInsert);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isInsert(String isInsert)
|
|
|
- {
|
|
|
- return isInsert != null && StringUtils.equals("1", isInsert);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setIsEdit(String isEdit)
|
|
|
{
|
|
@@ -383,15 +380,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
return isEdit;
|
|
|
}
|
|
|
|
|
|
- public boolean isEdit()
|
|
|
- {
|
|
|
- return isInsert(this.isEdit);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isEdit(String isEdit)
|
|
|
- {
|
|
|
- return isEdit != null && StringUtils.equals("1", isEdit);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setIsList(String isList)
|
|
|
{
|
|
@@ -403,15 +400,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
return isList;
|
|
|
}
|
|
|
|
|
|
- public boolean isList()
|
|
|
- {
|
|
|
- return isList(this.isList);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isList(String isList)
|
|
|
- {
|
|
|
- return isList != null && StringUtils.equals("1", isList);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setIsQuery(String isQuery)
|
|
|
{
|
|
@@ -423,15 +420,15 @@ public class GenTableColumn extends BaseEntity
|
|
|
return isQuery;
|
|
|
}
|
|
|
|
|
|
- public boolean isQuery()
|
|
|
- {
|
|
|
- return isQuery(this.isQuery);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- public boolean isQuery(String isQuery)
|
|
|
- {
|
|
|
- return isQuery != null && StringUtils.equals("1", isQuery);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void setQueryType(String queryType)
|
|
|
{
|
|
@@ -473,53 +470,53 @@ public class GenTableColumn extends BaseEntity
|
|
|
return sort;
|
|
|
}
|
|
|
|
|
|
- public boolean isSuperColumn()
|
|
|
- {
|
|
|
- return isSuperColumn(this.javaField);
|
|
|
- }
|
|
|
-
|
|
|
- public static boolean isSuperColumn(String javaField)
|
|
|
- {
|
|
|
- return StringUtils.equalsAnyIgnoreCase(javaField,
|
|
|
-
|
|
|
- "createBy", "createTime", "updateBy", "updateTime", "remark",
|
|
|
-
|
|
|
- "parentName", "parentId", "orderNum", "ancestors");
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isUsableColumn()
|
|
|
- {
|
|
|
- return isUsableColumn(javaField);
|
|
|
- }
|
|
|
-
|
|
|
- public static boolean isUsableColumn(String javaField)
|
|
|
- {
|
|
|
-
|
|
|
- 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() {
|
|
|
return sysDictData;
|