List resultList = new ArrayList<>();

String query = "query";

for (BpmTask task : list) { if (task.getSubject().contains(query) || task.getBusKey().contains(query) || task.getCreateName().contains(query) || task.getCreateBy().contains(query)) { resultList.add(task); } }

// resultList contains the filtered tasks based on the query string.

这是一个以BpmTask对象为元素的集合ListBpmTask list=pagegetRecords;BpmTask有4个属性1标题属性 事项标题 TableFieldvalue = SUBJECT_ private String subject;2、 单号属性业务单号 TableFieldvalue = BUS_KEY_ private String bus

原文地址: http://www.cveoy.top/t/topic/i1kx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录