diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13857deb..70dd9472 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,15 @@
## smart-doc版本
+
+### 版本号:2.6.9
+
+- 更新日期: 2023-05-14
+- 更新内容:
+ 1. 修复qdox不允许将字段名命名为permits关键字的bug,[#498](https://github.com/smart-doc-group/smart-doc/issues/498)
+ 2. dubbo接口继承父类时,父类中接口未解析问题修复。[#493](https://github.com/smart-doc-group/smart-doc/issues/493)
+ 3. 优化插件对许多无关依赖的过滤,提升插件开箱即用的能力。
+ 4. 支持禁用随机mock值生成,[#497](https://github.com/smart-doc-group/smart-doc/issues/497)
+
+
### 版本号:2.6.8
- 更新日期: 2023-05-02
diff --git a/pom.xml b/pom.xml
index 53e29c0a..4a2a5054 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
smart-doc
jar
- 2.6.8
+ 2.6.9
smart-doc
https://github.com/smart-doc-group/smart-doc.git
@@ -51,7 +51,7 @@
com.github.shalousun
qdox
- 2.0.3
+ 2.0.3.1
net.datafaker
@@ -61,7 +61,7 @@
com.github.shalousun
common-util
- 2.1.8
+ 2.1.9
com.google.code.gson
diff --git a/src/main/java/com/power/doc/utils/DocUtil.java b/src/main/java/com/power/doc/utils/DocUtil.java
index 552568fb..0d5db8ae 100644
--- a/src/main/java/com/power/doc/utils/DocUtil.java
+++ b/src/main/java/com/power/doc/utils/DocUtil.java
@@ -140,7 +140,7 @@ public static String jsonValueByType(String typeName) {
if (randomMockFlag) {
value = RandomUtil.randomValueByType(type);
} else {
- value = generateDefaultValueByType(type);
+ value = RandomUtil.generateDefaultValueByType(type);
}
if (javaPrimaryType(type)) {
return value;
@@ -1046,51 +1046,4 @@ public static boolean substringMatch(CharSequence str, int index, CharSequence s
}
return true;
}
-
- public static String generateDefaultValueByType(String type) {
- switch (type) {
- //12
- case "char":
- return "";
- case "Integer": //4
- case "int":
- case "Long": //-5
- case "long":
- case "BigDecimal": //3
- case "BigInteger":
- return "0";
- case "Double": //8
- case "double":
- case "Float": //6
- case "float":
- return "0.0";
- case "short":
- case "Short":
- return "0";
- case "boolean":
- case "Boolean":
- return "true";
- case "Time": //91
- case "Date":
- case "Timestamp":
- case "LocalDateTime":
- return DateTimeUtil.DATE_FORMAT_SECOND;
- case "LocalTime":
- return DateTimeUtil.LOCAL_TIME;
- case "Year":
- return DateTimeUtil.YEAR;
- case "MonthDay":
- return DateTimeUtil.MONTH_DAY;
- case "YearMonth":
- return DateTimeUtil.YEAR_MONTH;
- case "LocalDate":
- return DateTimeUtil.DATE_FORMAT_DAY;
- case "ZonedDateTime":
- return DateTimeUtil.DATE_FORMAT_ZONED_DATE_TIME;
- case "OffsetDateTime":
- return OffsetDateTime.now().toString();
- default:
- return "";
- }
- }
}