|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.engine.organization.service.impl;
|
|
|
|
package com.engine.organization.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
import com.api.browser.bean.BrowserBean;
|
|
|
|
import com.api.browser.bean.SearchConditionGroup;
|
|
|
|
import com.api.browser.bean.SearchConditionGroup;
|
|
|
|
import com.api.browser.bean.SearchConditionItem;
|
|
|
|
import com.api.browser.bean.SearchConditionItem;
|
|
|
|
import com.api.browser.bean.SearchConditionOption;
|
|
|
|
import com.api.browser.bean.SearchConditionOption;
|
|
|
@ -11,6 +12,7 @@ import com.engine.core.impl.Service;
|
|
|
|
import com.engine.hrm.entity.RuleCodeType;
|
|
|
|
import com.engine.hrm.entity.RuleCodeType;
|
|
|
|
import com.engine.organization.component.OrganizationWeaTable;
|
|
|
|
import com.engine.organization.component.OrganizationWeaTable;
|
|
|
|
import com.engine.organization.entity.DeleteParam;
|
|
|
|
import com.engine.organization.entity.DeleteParam;
|
|
|
|
|
|
|
|
import com.engine.organization.entity.browser.po.CustomBrowserBean;
|
|
|
|
import com.engine.organization.entity.codesetting.po.CodeRulePO;
|
|
|
|
import com.engine.organization.entity.codesetting.po.CodeRulePO;
|
|
|
|
import com.engine.organization.entity.commom.RecordInfo;
|
|
|
|
import com.engine.organization.entity.commom.RecordInfo;
|
|
|
|
import com.engine.organization.entity.company.bo.CompBO;
|
|
|
|
import com.engine.organization.entity.company.bo.CompBO;
|
|
|
@ -215,6 +217,12 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
SearchConditionItem schemeBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "等级方案", "161", "schemeId", "schemeBrowser");
|
|
|
|
SearchConditionItem schemeBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "等级方案", "161", "schemeId", "schemeBrowser");
|
|
|
|
// 上级岗位
|
|
|
|
// 上级岗位
|
|
|
|
SearchConditionItem parentJobBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "上级岗位", "666", "parentJob", "");
|
|
|
|
SearchConditionItem parentJobBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "上级岗位", "666", "parentJob", "");
|
|
|
|
|
|
|
|
BrowserBean browserBean = parentJobBrowserItem.getBrowserConditionParam();
|
|
|
|
|
|
|
|
String s = JSONObject.toJSONString(browserBean);
|
|
|
|
|
|
|
|
CustomBrowserBean customBrowserBean = JSONObject.parseObject(s, CustomBrowserBean.class);
|
|
|
|
|
|
|
|
customBrowserBean.setHasLeftTree(true);
|
|
|
|
|
|
|
|
customBrowserBean.setLeftToSearchKey("treeKey");
|
|
|
|
|
|
|
|
parentJobBrowserItem.setBrowserConditionParam(customBrowserBean);
|
|
|
|
// 是否关键岗
|
|
|
|
// 是否关键岗
|
|
|
|
List<SearchConditionOption> isKeyOptions = new ArrayList<>();
|
|
|
|
List<SearchConditionOption> isKeyOptions = new ArrayList<>();
|
|
|
|
SearchConditionOption yesOption = new SearchConditionOption("0", "否");
|
|
|
|
SearchConditionOption yesOption = new SearchConditionOption("0", "否");
|
|
|
@ -484,6 +492,12 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
List<SearchConditionItem> condition = new ArrayList<>();
|
|
|
|
List<SearchConditionItem> condition = new ArrayList<>();
|
|
|
|
SearchConditionItem deptBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 3, false, "合并到岗位", "666", "targetJob", "");
|
|
|
|
SearchConditionItem deptBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 3, false, "合并到岗位", "666", "targetJob", "");
|
|
|
|
deptBrowserItem.setRules("required");
|
|
|
|
deptBrowserItem.setRules("required");
|
|
|
|
|
|
|
|
BrowserBean browserBean = deptBrowserItem.getBrowserConditionParam();
|
|
|
|
|
|
|
|
String s = JSONObject.toJSONString(browserBean);
|
|
|
|
|
|
|
|
CustomBrowserBean customBrowserBean = JSONObject.parseObject(s, CustomBrowserBean.class);
|
|
|
|
|
|
|
|
customBrowserBean.setHasLeftTree(true);
|
|
|
|
|
|
|
|
customBrowserBean.setLeftToSearchKey("treeKey");
|
|
|
|
|
|
|
|
deptBrowserItem.setBrowserConditionParam(customBrowserBean);
|
|
|
|
SearchConditionItem mergeNameItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 3, 50, "合并后名称", "mergeName");
|
|
|
|
SearchConditionItem mergeNameItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 3, 50, "合并后名称", "mergeName");
|
|
|
|
mergeNameItem.setRules("required|string");
|
|
|
|
mergeNameItem.setRules("required|string");
|
|
|
|
JobPO jobById = getJobMapper().getJobById(id);
|
|
|
|
JobPO jobById = getJobMapper().getJobById(id);
|
|
|
|