//更新客户报价库
if(baoJiaKuList2.size() > 0)
{
info "更新报价列表大小:" + baoJiaKuList2.size();
pageLargest = ceil(baoJiaKuList2.size() / 100);
info "最大值:" + pageLargest;
str = "1";
pageList2 = leftpad(str,pageLargest).toList(" ");
info "PageList:" + pageList2;
for each index item in pageList2
{
page = item + 1;
info item + 1;
startIndex = (page - 1) * 100;
info "startIndex:" + startIndex;
endIndex = page * 100;
if(endIndex > baoJiaKuList2.size())
{
endIndex = baoJiaKuList2.size();
}
info "endIndex:" + endIndex;
baoJiaListVar = baoJiaKuList2.subList(startIndex,endIndex);
map = Map();
map.put("data",baoJiaListVar);
//调用接口批量插入报价库
response1 = invokeurl
[
type :PUT
parameters:map.toString()
connection:"crm"
];
info response1;
}
}