作者 RuoYi

表单类型为Integer/Long设置整形默认值

@@ -233,7 +233,6 @@ public class VelocityUtils @@ -233,7 +233,6 @@ public class VelocityUtils
233 public static String getPermissionPrefix(String moduleName, String businessName) 233 public static String getPermissionPrefix(String moduleName, String businessName)
234 { 234 {
235 return StringUtils.format("{}:{}", moduleName, businessName); 235 return StringUtils.format("{}:{}", moduleName, businessName);
236 -  
237 } 236 }
238 237
239 /** 238 /**
@@ -343,7 +343,7 @@ export default { @@ -343,7 +343,7 @@ export default {
343 this.form = { 343 this.form = {
344 #foreach ($column in $columns) 344 #foreach ($column in $columns)
345 #if($column.htmlType == "radio") 345 #if($column.htmlType == "radio")
346 - $column.javaField: "0"#if($velocityCount != $columns.size()),#end 346 + $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($velocityCount != $columns.size()),#end
347 347
348 #elseif($column.htmlType == "checkbox") 348 #elseif($column.htmlType == "checkbox")
349 $column.javaField: []#if($velocityCount != $columns.size()),#end 349 $column.javaField: []#if($velocityCount != $columns.size()),#end