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();
                }
            }
        }

 

posted on 2018-09-18 17:23  小白菜好吃  阅读(239)  评论(0编辑  收藏  举报

导航