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-05-26 10:11:02 +08:00
|
|
|
import com.engine.organization.mapper.staff.StaffPlanMapper;
|
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @description: TODO
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
* @createTime: 2022/05/25
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
public class StaffPlanTransMethod {
|
|
|
|
|
|
|
|
|
|
public static String getSpanById(String planId) {
|
|
|
|
|
StaffPlanMapper planMapper = MapperProxyFactory.getProxy(StaffPlanMapper.class);
|
2022-06-01 14:38:39 +08:00
|
|
|
List<Map<String, Object>> maps = planMapper.listPlansByIds(DeleteParam.builder().ids(planId).build().getIds());
|
2022-05-26 10:11:02 +08:00
|
|
|
String names = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
|
|
|
|
return names;
|
|
|
|
|
}
|
|
|
|
|
}
|