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
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
| ... | ... | @@ -343,7 +343,7 @@ export default { |
| 343 | 343 | this.form = { |
| 344 | 344 | #foreach ($column in $columns) |
| 345 | 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 | 348 | #elseif($column.htmlType == "checkbox") |
| 349 | 349 | $column.javaField: []#if($velocityCount != $columns.size()),#end | ... | ... |