Commit e293f1bc authored by 赵啸非's avatar 赵啸非

修改区域批量更新

parent 36f4175d
......@@ -105,7 +105,7 @@ public class BaseAreaServiceImpl extends AbstractCRUDServiceImpl<BaseAreaDao, Ba
Rest<RootAreaInfo> ret = JSON.parseObject(rest, new TypeReference<Rest<RootAreaInfo>>() {
});
if(list.size()>500){
if(list.size()>=500){
log.info("保存基础区域数据,共{}条", list.size());
this.save(list);
list.clear();
......@@ -127,6 +127,14 @@ public class BaseAreaServiceImpl extends AbstractCRUDServiceImpl<BaseAreaDao, Ba
}
if(!ObjectUtils.isEmpty(list)){
log.info("保存基础区域数据,共{}条", list.size());
this.save(list);
list.clear();
}
return Rest.ok();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment