remove使用

        // 根据付款确认书ID获取核心企业Id,签约主体Id,金融机构Id 查询业务审核项目定义表
        List<Record> approvefileList = this.listApproveDefine(controller);
        // 调用筛选的方法
        approvefileList = controller.getListShow(approvefileList, uuid);

        for (Record otherFile : otherFileList) {
            // 获取文件的id
            String otherFileDocumentId = otherFile.getStr("documentId");
            // 便利
            for (Record approvefile : approvefileList) {
                // 如果2个id相同,则把它移除。
                if (otherFileDocumentId.equals(approvefile.get("fileId").toString())) {
                    otherFile.remove();
                }
            }
        }
原文地址:https://www.cnblogs.com/xiaoniuniu886/p/9670156.html