|
|
@ -347,6 +347,7 @@ public class CompServiceImpl extends Service implements CompService {
|
|
|
|
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
|
|
|
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
|
|
|
List<SearchConditionItem> condition = new ArrayList<>();
|
|
|
|
List<SearchConditionItem> condition = new ArrayList<>();
|
|
|
|
SearchConditionItem compBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "转移到", "164", "company", "compBrowser");
|
|
|
|
SearchConditionItem compBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "转移到", "164", "company", "compBrowser");
|
|
|
|
|
|
|
|
compBrowserItem.setHelpfulTip("在不选择分部情况下,默认转移到集团下一级分部!!!");
|
|
|
|
condition.add(compBrowserItem);
|
|
|
|
condition.add(compBrowserItem);
|
|
|
|
addGroups.add(new SearchConditionGroup("", true, condition));
|
|
|
|
addGroups.add(new SearchConditionGroup("", true, condition));
|
|
|
|
return addGroups;
|
|
|
|
return addGroups;
|
|
|
@ -355,7 +356,7 @@ public class CompServiceImpl extends Service implements CompService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int moveCompany(DepartmentMoveParam moveParam) {
|
|
|
|
public int moveCompany(DepartmentMoveParam moveParam) {
|
|
|
|
Long targetCompanyId = moveParam.getCompany();
|
|
|
|
Long targetCompanyId = moveParam.getCompany();
|
|
|
|
OrganizationAssert.notNull(targetCompanyId, "请选择要转移到的分部");
|
|
|
|
//OrganizationAssert.notNull(targetCompanyId, "请选择要转移到的分部");
|
|
|
|
Long companyId = moveParam.getId();
|
|
|
|
Long companyId = moveParam.getId();
|
|
|
|
// 判断目标分部是否为它本身以及子元素
|
|
|
|
// 判断目标分部是否为它本身以及子元素
|
|
|
|
Set<Long> disableIds = new HashSet<>();
|
|
|
|
Set<Long> disableIds = new HashSet<>();
|
|
|
|