diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/dto.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/dto.ftl index 0c97d11..f28b017 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/dto.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/dto.ftl @@ -65,7 +65,7 @@ public class ${firstUpperTableName}DTO { return ${field.fieldName} == null ? 0D : ${field.fieldName}; } - public void set${field.firstUpperFieldName}(String ${field.fieldName}) { + public void set${field.firstUpperFieldName}(Double ${field.fieldName}) { this.${field.fieldName} = ${field.fieldName}; } diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/vo.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/vo.ftl index 3f0914a..58d99fa 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/vo.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/pojo/vo.ftl @@ -80,7 +80,7 @@ public class ${firstUpperTableName}VO { return ${field.fieldName} == null ? 0D : ${field.fieldName}; } - public void set${field.firstUpperFieldName}(String ${field.fieldName}) { + public void set${field.firstUpperFieldName}(Double ${field.fieldName}) { this.${field.fieldName} = ${field.fieldName}; }