zoukankan      html  css  js  c++  java
  • 利用集合,来实现移除的效果

    List<Record>    otherFileList = Db.find(sql, uuid, uuid); 
            
            // 调用保理业务本次审核列表共同方法
            List<Record> approvefileList = this.getApproveDefineListCommon(controller);
            
            //定义一个筛选后的容器
            ArrayList<Record> otherArrayList=new ArrayList<Record>();
            
            
            for (Record otherFile : otherFileList) {
                //定义一个标记位
                boolean  flag=true ;
                // 获取另需提供的文件ID
                String otherFileDocumentId = otherFile.getStr("documentId");
                // 遍历
                for (Record approvefile : approvefileList) {
                    // 如果文件ID相同,则结束当前的循环
                    if (otherFileDocumentId.equals(approvefile.get("fileId").toString())) {
                        flag=false;
                        break;
                    }
                }
                if (flag) {
                    otherArrayList.add(otherFile);
                }
            }
            return otherArrayList;
  • 相关阅读:
    javaSE基础(三)
    javaSE基础(二)
    javaSE基础(一)
    文件目录爬虫
    前自增 与 后自增
    查找 与 排序 总结
    python 使用 grpc
    python3.7 安装 uwsgi
    go
    go
  • 原文地址:https://www.cnblogs.com/xiaoniuniu886/p/9675258.html
Copyright © 2011-2022 走看看