Explorar el Código

新增布尔数据局类型

andy hace 1 año
padre
commit
681d75d3e6
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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("参数数据类型错误");
                                 }