fix json example error for Timestamp filed

This commit is contained in:
oppofind 2019-11-15 01:45:49 +08:00
parent 60870be61f
commit 3089e45514
3 changed files with 9 additions and 1 deletions

View File

@ -120,5 +120,11 @@
2. fix #I14MV7 不设置dataDictionaries出现空指针错误 2. fix #I14MV7 不设置dataDictionaries出现空指针错误
3. 增加请求参数枚举字段解析(试用功能) 3. 增加请求参数枚举字段解析(试用功能)
#### 版本号1.7.7
- 更新日期:待定
- 更新内容:
1. 修改timestamp类型字段创建json示例错误bug

View File

@ -820,7 +820,7 @@ public class SourceBuilder {
String subTypeName = field.getType().getFullyQualifiedName(); String subTypeName = field.getType().getFullyQualifiedName();
String fieldGicName = field.getType().getGenericCanonicalName(); String fieldGicName = field.getType().getGenericCanonicalName();
data0.append("\"").append(fieldName).append("\":"); data0.append("\"").append(fieldName).append("\":");
if (DocClassUtil.isPrimitive(typeSimpleName)) { if (DocClassUtil.isPrimitive(subTypeName)) {
CustomRespField customResponseField = responseFieldMap.get(fieldName); CustomRespField customResponseField = responseFieldMap.get(fieldName);
if (null != customResponseField) { if (null != customResponseField) {
Object val = customResponseField.getValue(); Object val = customResponseField.getValue();

View File

@ -242,6 +242,8 @@ public class DocClassUtil {
return "string"; return "string";
case "localdate": case "localdate":
return "string"; return "string";
case "timestamp":
return "string";
case "multipartfile": case "multipartfile":
return "file"; return "file";
default: default: