zoukankan      html  css  js  c++  java
  • java 建maplist放case center合并

        public void import12(){
            List<Map<String, Object>> mapList=new ArrayList<Map<String, Object>>();
            Map<String,Object> mapInfo=new HashMap<>();
            ImgCaseFilter imgCaseFilter=new ImgCaseFilter();
            List<ImgCase> imgCases=imgCaseService.selectAll(imgCaseFilter);        
            
            for(ImgCase imgCase:imgCases){
                ImgCenterFilter imgCenterFilter=new ImgCenterFilter();
                imgCenterFilter.setEq_caseId(imgCase.getId());
                JSONObject obj = new JSONObject();    
                
                String patientId = imgCase.getPatientId();
                String name = imgCase.getName();
                String age = imgCase.getAge();
                String sex = imgCase.getSex();
                
                obj.put("patientid", patientId);
                obj.put("name", name);
                obj.put("age", age);
                obj.put("sex", sex);
                obj.put("imgInfo", null);
                obj.put("imgInfo", null);
                
                List<ImgCenter> imgCenters=imgCenterService.selectAll(imgCenterFilter);    
                List<String> urllist=new ArrayList<String>();//当前caseid下imgcenter里的图片url            
                for(ImgCenter imgCenter:imgCenters){
                    String url=imgCenter.getImgUrl();
                    urllist.add(url);                
                }
                mapInfo.put("imgCase", obj);
                mapInfo.put("imgCenter", urllist);
                mapList.add(mapInfo);
            }
        }
        
  • 相关阅读:
    初涉Django与MySQL连接
    Mysql数据库操作常用命令
    解决远程登录MYSQL数据库
    全集网影片下载
    LR学习资料
    LR性能测试说明
    fiddler
    Axure(快速原型设计工具)
    httpwatch
    Appscan(安全性测试工具)
  • 原文地址:https://www.cnblogs.com/lely/p/10364611.html
Copyright © 2011-2022 走看看