fix: codegen
parent
47f3c560fa
commit
6360d43274
|
@ -4,11 +4,11 @@ export interface ${simpleClassName}VO {
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
#if ($column.createOperation || $column.updateOperation)
|
#if ($column.createOperation || $column.updateOperation)
|
||||||
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
||||||
${column.javaField}?: number
|
${column.javaField}: number
|
||||||
#elseif(${column.javaType.toLowerCase()} == "date")
|
#elseif(${column.javaType.toLowerCase()} == "date")
|
||||||
${column.javaField}?: string
|
${column.javaField}: string
|
||||||
#else
|
#else
|
||||||
${column.javaField}?: ${column.javaType.toLowerCase()}
|
${column.javaField}: ${column.javaType.toLowerCase()}
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
@ -18,28 +18,28 @@ export interface ${simpleClassName}PageReqVO extends PageParam {
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
#if (${column.listOperation})##查询操作
|
#if (${column.listOperation})##查询操作
|
||||||
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
||||||
${column.javaField}?: number
|
${column.javaField}?: number
|
||||||
#elseif(${column.javaType.toLowerCase()} == "date")
|
#elseif(${column.javaType.toLowerCase()} == "date")
|
||||||
${column.javaField}?: string
|
${column.javaField}?: string[]
|
||||||
#else
|
#else
|
||||||
${column.javaField}?: ${column.javaType.toLowerCase()}
|
${column.javaField}?: ${column.javaType.toLowerCase()}
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ${simpleClassName}ExcelReqVO {
|
export interface ${simpleClassName}ExcelReqVO {
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
#if (${column.listOperation})##查询操作
|
#if (${column.listOperation})##查询操作
|
||||||
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
||||||
${column.javaField}: number
|
${column.javaField}?: number
|
||||||
#elseif(${column.javaType.toLowerCase()} == "date")
|
#elseif(${column.javaType.toLowerCase()} == "date")
|
||||||
${column.javaField}: string
|
${column.javaField}?: string[]
|
||||||
#else
|
#else
|
||||||
${column.javaField}: ${column.javaType.toLowerCase()}
|
${column.javaField}?: ${column.javaType.toLowerCase()}
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
#set ($baseURL = "/${table.moduleName}/${simpleClassName_strikeCase}")
|
#set ($baseURL = "/${table.moduleName}/${simpleClassName_strikeCase}")
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ const submitForm = async () => {
|
||||||
await ${simpleClassName}Api.update${simpleClassName}Api(data)
|
await ${simpleClassName}Api.update${simpleClassName}Api(data)
|
||||||
message.success(t('common.updateSuccess'))
|
message.success(t('common.updateSuccess'))
|
||||||
}
|
}
|
||||||
dialogVisible.value = false
|
modelVisible.value = false
|
||||||
} finally {
|
} finally {
|
||||||
actionLoading.value = false
|
actionLoading.value = false
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
|
@ -174,6 +174,4 @@ const submitForm = async () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue