|
|
@ -371,7 +371,7 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|
|
|
String parentDeptS = jobTrees.stream().map(SearchTree::getParentComp).collect(Collectors.joining(","));
|
|
|
|
String parentDeptS = jobTrees.stream().map(SearchTree::getParentComp).collect(Collectors.joining(","));
|
|
|
|
if (!StringUtil.isEmpty(parentDeptS)) {
|
|
|
|
if (!StringUtil.isEmpty(parentDeptS)) {
|
|
|
|
// 兼容SQLServer每次最多in,2100条数据
|
|
|
|
// 兼容SQLServer每次最多in,2100条数据
|
|
|
|
List<Long> ids = (List<Long>) DeleteParam.builder().ids(parentDeptS).build().getIds();
|
|
|
|
List<Long> ids = DeleteParam.builder().ids(parentDeptS).build().getIds();
|
|
|
|
int ceilCount = (int) Math.ceil((double) ids.size() / 1000);
|
|
|
|
int ceilCount = (int) Math.ceil((double) ids.size() / 1000);
|
|
|
|
List<DepartmentPO> departmentsByIds = new ArrayList<>();
|
|
|
|
List<DepartmentPO> departmentsByIds = new ArrayList<>();
|
|
|
|
for (int i = 0; i < ceilCount - 1; i++) {
|
|
|
|
for (int i = 0; i < ceilCount - 1; i++) {
|
|
|
|