|
@@ -278,7 +278,18 @@ public class GljtPlzjServiceImpl implements IGljtPlzjService
|
|
|
in.setStatus("0");
|
|
|
inList.add(in);
|
|
|
}
|
|
|
- gljtJfxxMapper.batchInsertZjbf(inList);
|
|
|
+ int listSize = inList.size();
|
|
|
+ int toIndex = 1000;
|
|
|
+ for (int i = 0; i < inList.size(); i += 1000) {
|
|
|
+ if (i + 1000 > listSize) {
|
|
|
+ toIndex = listSize - i;
|
|
|
+ }
|
|
|
+ List<GljtJfxxZjbf> inList2 = inList.subList(i, i + toIndex);
|
|
|
+ if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(inList2)) {
|
|
|
+ gljtJfxxMapper.batchInsertZjbf(inList2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+// gljtJfxxMapper.batchInsertZjbf(inList);
|
|
|
}
|
|
|
gljtPlzj.setZjrs(String.valueOf(lrIdList.size()));
|
|
|
gljtPlzj.setZjje(all.toString());
|