fix json example error for Timestamp filed
This commit is contained in:
parent
60870be61f
commit
3089e45514
|
@ -120,5 +120,11 @@
|
||||||
2. fix #I14MV7 不设置dataDictionaries出现空指针错误
|
2. fix #I14MV7 不设置dataDictionaries出现空指针错误
|
||||||
3. 增加请求参数枚举字段解析(试用功能)
|
3. 增加请求参数枚举字段解析(试用功能)
|
||||||
|
|
||||||
|
#### 版本号:1.7.7
|
||||||
|
- 更新日期:待定
|
||||||
|
- 更新内容:
|
||||||
|
1. 修改timestamp类型字段创建json示例错误bug
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue