weaver-hrm-organization/src/com/engine/organization/util/relation/EcHrmRelationUtil.java

30 lines
706 B
Java
Raw Normal View History

package com.engine.organization.util.relation;
2022-07-15 09:02:18 +08:00
import com.engine.organization.entity.job.po.JobPO;
import com.engine.organization.mapper.job.JobMapper;
import com.engine.organization.util.db.MapperProxyFactory;
2022-12-09 14:29:20 +08:00
import weaver.general.Util;
2022-07-15 09:02:18 +08:00
/**
* @author:dxfeng
* @createTime: 2022/07/13
* @version: 1.0
*/
public class EcHrmRelationUtil {
2022-07-15 09:02:18 +08:00
private static JobMapper getJobMapper() {
return MapperProxyFactory.getProxy(JobMapper.class);
}
public static String getEcJobId(Long jclJobId) {
JobPO jobById = getJobMapper().getJobById(jclJobId);
if (null == jobById) {
return "";
}
2022-07-15 09:02:18 +08:00
2022-12-09 14:29:20 +08:00
return Util.null2String(jobById.getEcJobTitle());
2022-07-15 09:02:18 +08:00
}
}