|
|
@ -19,7 +19,6 @@ import com.engine.organization.mapper.scheme.GradeMapper;
|
|
|
|
import com.engine.organization.mapper.scheme.LevelMapper;
|
|
|
|
import com.engine.organization.mapper.scheme.LevelMapper;
|
|
|
|
import com.engine.organization.mapper.scheme.SchemeMapper;
|
|
|
|
import com.engine.organization.mapper.scheme.SchemeMapper;
|
|
|
|
import com.engine.organization.mapper.sequence.SequenceMapper;
|
|
|
|
import com.engine.organization.mapper.sequence.SequenceMapper;
|
|
|
|
import com.engine.organization.thread.HrmResourceTriggerRunnable;
|
|
|
|
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
import com.wbi.util.Util;
|
|
|
|
import com.wbi.util.Util;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
@ -68,6 +67,7 @@ public class CusFieldDataTrigger {
|
|
|
|
JobPO jobById = MapperProxyFactory.getProxy(JobMapper.class).getJobById(gwId);
|
|
|
|
JobPO jobById = MapperProxyFactory.getProxy(JobMapper.class).getJobById(gwId);
|
|
|
|
if (null != jobById) {
|
|
|
|
if (null != jobById) {
|
|
|
|
RecordInfo hrmJobTitleByName = MapperProxyFactory.getProxy(SystemDataMapper.class).getHrmJobTitleByName(jobById.getJobName());
|
|
|
|
RecordInfo hrmJobTitleByName = MapperProxyFactory.getProxy(SystemDataMapper.class).getHrmJobTitleByName(jobById.getJobName());
|
|
|
|
|
|
|
|
if(null!=hrmJobTitleByName) {
|
|
|
|
Long ecGwId = StringUtils.isNotBlank(hrmJobTitleByName.getId()) ? Long.parseLong(hrmJobTitleByName.getId()) : null;
|
|
|
|
Long ecGwId = StringUtils.isNotBlank(hrmJobTitleByName.getId()) ? Long.parseLong(hrmJobTitleByName.getId()) : null;
|
|
|
|
Long ecBmId = jobById.getEcDepartment();
|
|
|
|
Long ecBmId = jobById.getEcDepartment();
|
|
|
|
Long ecGsId = jobById.getEcCompany();
|
|
|
|
Long ecGsId = jobById.getEcCompany();
|
|
|
@ -114,6 +114,7 @@ public class CusFieldDataTrigger {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
directionData.setField100002(null);
|
|
|
|
directionData.setField100002(null);
|
|
|
|
directionData.setField100008(null);
|
|
|
|
directionData.setField100008(null);
|
|
|
@ -164,6 +165,6 @@ public class CusFieldDataTrigger {
|
|
|
|
MapperProxyFactory.getProxy(SystemDataMapper.class).updateCusFieldData(directionData);
|
|
|
|
MapperProxyFactory.getProxy(SystemDataMapper.class).updateCusFieldData(directionData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 刷新组织结构图
|
|
|
|
// 刷新组织结构图
|
|
|
|
new HrmResourceTriggerRunnable(id).run();
|
|
|
|
// new HrmResourceTriggerRunnable(id).run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|