fix error of mock value

This commit is contained in:
oppofind 2020-12-13 22:11:27 +08:00
parent 4152d5e1cf
commit bf8aa4bbe8
1 changed files with 1 additions and 2 deletions

View File

@ -599,8 +599,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
}
}
} else if (JavaClassValidateUtil.isPrimitive(fullTypeName)) {
String typeSimpleName = DocClassUtil.processTypeNameForParams(simpleName);
String value = DocUtil.getValByTypeAndFieldName(typeSimpleName, paramName);
String value = DocUtil.getValByTypeAndFieldName(javaType.getValue(), paramName);
ApiParam param = ApiParam.of().setField(paramName)
.setType(DocClassUtil.processTypeNameForParams(simpleName))
.setId(paramList.size() + 1)