|
|
|
@ -5,8 +5,10 @@ import com.engine.organization.entity.DeleteParam;
|
|
|
|
|
import com.engine.organization.mapper.employee.EmployeeMapper;
|
|
|
|
|
import com.engine.organization.mapper.hrmresource.SystemDataMapper;
|
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
@ -20,8 +22,15 @@ import java.util.stream.Collectors;
|
|
|
|
|
public class ManagerDetachTransMethod {
|
|
|
|
|
|
|
|
|
|
public static String getManagerName(String ecManager) {
|
|
|
|
|
String managerName = MapperProxyFactory.getProxy(EmployeeMapper.class).getEmployeeNameById(Long.valueOf(ecManager));
|
|
|
|
|
return managerName;
|
|
|
|
|
if (org.apache.commons.lang.StringUtils.isBlank(ecManager)) {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
List<Long> collect = Arrays.stream(ecManager.split(",")).map(Long::parseLong).collect(Collectors.toList());
|
|
|
|
|
if (CollectionUtils.isEmpty(collect)) {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
List<String> employeeNameById = MapperProxyFactory.getProxy(EmployeeMapper.class).getEmployeeNameById(collect);
|
|
|
|
|
return StringUtils.join(employeeNameById, ",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|