Ver Fonte

新增布尔数据局类型

andy há 1 ano atrás
pai
commit
681d75d3e6

+ 6 - 0
src/main/java/com/scbfkj/uni/service/DataProcessService.java

@@ -209,6 +209,9 @@ public class DataProcessService {
                                 case "Number" -> {
                                     parameters.add(NumberFormat.getInstance().parse(o1.toString()));
                                 }
+                                case "Boolean" -> {
+                                    parameters.add(Boolean.parseBoolean(o1.toString()));
+                                }
                                 default -> {
                                     throw new RuntimeException("参数数据类型错误");
                                 }
@@ -229,6 +232,9 @@ public class DataProcessService {
                                 case "Number" -> {
                                     parameters.add(NumberFormat.getInstance().parse(subscriptionExpressions.toString()));
                                 }
+                                case "Boolean" -> {
+                                    parameters.add(Boolean.parseBoolean(subscriptionExpressions.toString()));
+                                }
                                 default -> {
                                     throw new RuntimeException("参数数据类型错误");
                                 }