|
|
|
@ -671,12 +671,24 @@ public class IdcServiceImpl implements IdcService {
|
|
|
|
|
|
|
|
|
|
private boolean analyToFile(String host,String filePathColumn,List<Map<String,Object>> list) {
|
|
|
|
|
|
|
|
|
|
if(list!=null&&list.size()>0&&!StringUtils.isEmpty(filePathColumn)) {
|
|
|
|
|
if(list!=null&&list.size()>0) {
|
|
|
|
|
String[] files = new String[list.size()];
|
|
|
|
|
logger.info("filePathColumn-->"+filePathColumn);
|
|
|
|
|
for(int i=0;i<list.size();i++) {
|
|
|
|
|
files[i] = list.get(i).get(filePathColumn) !=null ? list.get(i).get(filePathColumn).toString() : "";
|
|
|
|
|
logger.info("file-->"+files[i]);
|
|
|
|
|
if(!StringUtils.isEmpty(filePathColumn)) {
|
|
|
|
|
files[i] = list.get(i).get(filePathColumn) !=null ? list.get(i).get(filePathColumn).toString() : "";
|
|
|
|
|
logger.info("file-->"+files[i]);
|
|
|
|
|
}
|
|
|
|
|
for(int z=0;z<30;z++) {
|
|
|
|
|
if(list.get(i).get("data"+z)!=null) {
|
|
|
|
|
if(list.get(i).get("filePathColumn"+z)!=null) {
|
|
|
|
|
List<Map<String,Object>> childList = (ArrayList<Map<String,Object>>)list.get(i).get("data"+z);
|
|
|
|
|
analyToFile(host,list.get(i).get("filePathColumn"+z).toString(),childList);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
batchDownloadFile(host,files);
|
|
|
|
|