Browse Source

新增布尔数据局类型

andy 1 year ago
parent
commit
681d75d3e6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/main/java/com/scbfkj/uni/service/DataProcessService.java

+ 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("参数数据类型错误");
                                 }