Commit cbf4795fd54734bef37fb38fce42532c8998b7fd
1 parent
5d74ed32
表单类型为Integer/Long设置整形默认值
Showing
2 changed files
with
1 additions
and
2 deletions
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java
| @@ -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 | /** |
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
| @@ -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 |