适配TinyInt

This commit is contained in:
liangdaliang
2025-03-07 15:04:34 +08:00
parent ebc090c437
commit b80c0cf2ba

View File

@@ -262,8 +262,7 @@ public class TestCaseServiceImpl implements ITestCaseService
sqlResult.setColumnNameList(columnNameList);
sqlResult.setResultMapList(resultMapList);
Gson gson = new GsonBuilder()
.registerTypeAdapter(Integer.class, new TinyIntTypeAdapter())
.registerTypeAdapter(int.class, new TinyIntTypeAdapter())
.registerTypeAdapter(Byte.class, new TinyIntTypeAdapter())
.registerTypeAdapter(LocalDateTime.class, new LocalDateTimeConverter())
.create();
testCaseResult.setSqlResult(gson.toJson(sqlResult));