fix: 实时数据出现负数
This commit is contained in:
@@ -39,7 +39,7 @@ public class RandomNumberUtil {
|
||||
resultList.add(type.cast(faker.number().randomDouble(2, 50, 100)));
|
||||
} else if (type.equals(Integer.class)) {
|
||||
// 对于 Integer 类型,生成伪随机整数值
|
||||
resultList.add(type.cast(faker.number().numberBetween(1, 100)));
|
||||
resultList.add(type.cast(faker.number().numberBetween(50, 100)));
|
||||
} else {
|
||||
// 可以扩展更多的类型支持
|
||||
throw new IllegalArgumentException("Unsupported type: " + type);
|
||||
|
||||
Reference in New Issue
Block a user