生成模板默认值修改

master
gcii 6 years ago
parent c1f860ead1
commit b2b2926a26

@ -76,7 +76,7 @@ public class GenConstants
public static final String TYPE_DATE = "Date"; public static final String TYPE_DATE = "Date";
/** 模糊查询 */ /** 模糊查询 */
public static final String QUERY_LIKE = "Like"; public static final String QUERY_LIKE = "LIKE";
/** 需要 */ /** 需要 */
public static final String REQUIRE = "1"; public static final String REQUIRE = "1";

@ -34,11 +34,12 @@ public class VelocityUtils
String businessName = genTable.getBusinessName(); String businessName = genTable.getBusinessName();
String packageName = genTable.getPackageName(); String packageName = genTable.getPackageName();
String tplCategory = genTable.getTplCategory(); String tplCategory = genTable.getTplCategory();
String functionName = genTable.getFunctionName();
VelocityContext velocityContext = new VelocityContext(); VelocityContext velocityContext = new VelocityContext();
velocityContext.put("tplCategory", genTable.getTplCategory()); velocityContext.put("tplCategory", genTable.getTplCategory());
velocityContext.put("tableName", genTable.getTableName()); velocityContext.put("tableName", genTable.getTableName());
velocityContext.put("functionName", genTable.getFunctionName()); velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【请填写功能名称】");
velocityContext.put("ClassName", genTable.getClassName()); velocityContext.put("ClassName", genTable.getClassName());
velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName())); velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName()));
velocityContext.put("moduleName", genTable.getModuleName()); velocityContext.put("moduleName", genTable.getModuleName());

@ -2685,7 +2685,7 @@ CREATE TABLE [dbo].[gen_table_column] (
[is_edit] nchar(1) DEFAULT NULL NULL, [is_edit] nchar(1) DEFAULT NULL NULL,
[is_list] nchar(1) DEFAULT NULL NULL, [is_list] nchar(1) DEFAULT NULL NULL,
[is_query] nchar(1) DEFAULT NULL NULL, [is_query] nchar(1) DEFAULT NULL NULL,
[query_type] nvarchar(200) DEFAULT ('=') NULL, [query_type] nvarchar(200) DEFAULT ('EQ') NULL,
[html_type] nvarchar(200) DEFAULT NULL NULL, [html_type] nvarchar(200) DEFAULT NULL NULL,
[dict_type] nvarchar(200) DEFAULT '' NULL, [dict_type] nvarchar(200) DEFAULT '' NULL,
[sort] int DEFAULT NULL NULL, [sort] int DEFAULT NULL NULL,

Loading…
Cancel
Save