diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl index fac174b..15e8959 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl @@ -897,7 +897,7 @@ top.restAjax.get(top.restAjax.path('api/${lowerTableName}/get${lowerTableName}byid/{${firstLowerTableName}Id}', [${firstLowerTableName}Id]), {}, null, function(code, data) { var dataFormData = {}; for(var i in data) { - dataFormData[i] = data[i]; + dataFormData[i] = data[i] +''; } form.val('dataForm', dataFormData); form.render(null, 'dataForm');