billIds = new ArrayList<>();
+ Filter filter = new Filter();
+ if (MapUtil.isNotEmpty(queryParams)) {
+ queryParams.forEach((column, value) -> {
+ if (value == null || "".equals(value)) {
+ return; // 空条件不过滤,与列表查询语义保持一致
+ }
+ filter.add(new FilterItem(column, FilterItem.equals, value));
+ });
+ }
+ Selector selector = new Selector();
+ selector.getList().add(new SelectorItem("id"));
+ ObjectCollection collection = ormGenDataSourceUtil.query(masterTable.getTableName(), filter, selector);
+ if (collection == null || collection.isEmpty()){
+ return new ArrayList<>();
+ }
+ for (int i = 0; i < collection.size(); i++) {
+ Object id = collection.getObject(i).get("id");
+ if (id != null) {
+ billIds.add(id.toString());
+ }
+ }
+ return billIds;
+ }
+
+ /**
* 判断当前按钮绑定的插件中是否包含指定插件。
* 按钮与插件的绑定是 widgetJson 中 pluginList[].class 的全限定类名(见 QuickFormWidgetUtil#setSaveButtonEnabled),
* 用类名判断比用中文 buttonName 可靠。
diff --git a/common/pom.xml b/common/pom.xml
index d79f21d..a698271 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -15,6 +15,7 @@
common-flow
common-flow-online
common-online
+ common-botp
common-tenant
common-tenant-online