数据量大分批执行处理

没80条执行一次

int bathInt = 80;
for(int i = 0; i < map.size()/bathInt; i++){
msg.append(pMethod.SHHSREVObject(map.subList(i*bathInt, (i+1)*bathInt),UName,TableName));
}
if(map.size()%bathInt != 0){
msg.append(pMethod.SHHSREVObject(map.subList(map.size()/bathInt*bathInt,
map.size()/bathInt*bathInt+map.size()%bathInt),UName,TableName));
}

原文地址:https://www.cnblogs.com/yangpeng-jingjing/p/6872010.html