weaver-hrm-organization/src/com/engine/organization/transmethod/CompTransMethod.java

25 lines
807 B
Java
Raw Normal View History

2022-05-26 10:11:02 +08:00
package com.engine.organization.transmethod;
2022-06-01 14:38:39 +08:00
import com.engine.organization.entity.DeleteParam;
2022-11-28 11:15:54 +08:00
import com.engine.organization.entity.company.po.CompanyPO;
import com.engine.organization.mapper.comp.CompanyMapper;
2022-05-26 10:11:02 +08:00
import com.engine.organization.util.db.MapperProxyFactory;
import java.util.List;
import java.util.stream.Collectors;
/**
2022-06-14 11:07:48 +08:00
* @description:
2022-05-26 10:11:02 +08:00
* @author:dxfeng
* @createTime: 2022/05/25
* @version: 1.0
*/
public class CompTransMethod {
public static String getSpanById(String planId) {
2022-11-28 11:15:54 +08:00
CompanyMapper compMapper = MapperProxyFactory.getProxy(CompanyMapper.class);
List<CompanyPO> maps = compMapper.getCompsByIds(DeleteParam.builder().ids(planId).build().getIds());
return maps.stream().map(CompanyPO::getSubCompanyName).collect(Collectors.joining(","));
2022-05-26 10:11:02 +08:00
}
}