|
|
@ -310,8 +310,8 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
|
|
|
|
|
|
|
|
params.put("is_key", null == searchParam.getIsKey() ? 0 : searchParam.getIsKey());
|
|
|
|
params.put("is_key", null == searchParam.getIsKey() ? 0 : searchParam.getIsKey());
|
|
|
|
// TODO 处理ec表关联关系
|
|
|
|
// TODO 处理ec表关联关系
|
|
|
|
DepartmentPO departmentPO = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptById(searchParam.getParentDept());
|
|
|
|
//DepartmentPO departmentPO = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptById(searchParam.getParentDept());
|
|
|
|
params.put("parent_comp", departmentPO.getParentComp());
|
|
|
|
//params.put("parent_comp", departmentPO.getParentComp());
|
|
|
|
if (StringUtils.isBlank(params.get("show_order").toString())) {
|
|
|
|
if (StringUtils.isBlank(params.get("show_order").toString())) {
|
|
|
|
int maxShowOrder = getJobMapper().getMaxShowOrder();
|
|
|
|
int maxShowOrder = getJobMapper().getMaxShowOrder();
|
|
|
|
params.put("show_order", maxShowOrder + 1);
|
|
|
|
params.put("show_order", maxShowOrder + 1);
|
|
|
@ -350,8 +350,8 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
// 更新主表数据
|
|
|
|
// 更新主表数据
|
|
|
|
params.put("is_key", searchParam.getIsKey());
|
|
|
|
params.put("is_key", searchParam.getIsKey());
|
|
|
|
// TODO 处理ec表关联关系
|
|
|
|
// TODO 处理ec表关联关系
|
|
|
|
DepartmentPO departmentPO = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptById(searchParam.getParentDept());
|
|
|
|
//DepartmentPO departmentPO = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptById(searchParam.getParentDept());
|
|
|
|
params.put("parent_comp", departmentPO.getParentComp());
|
|
|
|
//params.put("parent_comp", departmentPO.getParentComp());
|
|
|
|
getExtService(user).updateExtForm(user, EXTEND_TYPE, JCL_ORG_JOB, params, "", searchParam.getId());
|
|
|
|
getExtService(user).updateExtForm(user, EXTEND_TYPE, JCL_ORG_JOB, params, "", searchParam.getId());
|
|
|
|
// 更新主表拓展表
|
|
|
|
// 更新主表拓展表
|
|
|
|
getExtService(user).updateExtForm(user, EXTEND_TYPE, JCL_ORG_JOBEXT, params, groupId, searchParam.getId());
|
|
|
|
getExtService(user).updateExtForm(user, EXTEND_TYPE, JCL_ORG_JOBEXT, params, groupId, searchParam.getId());
|
|
|
|