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

35 lines
972 B
Java
Raw Normal View History

2022-05-26 10:11:02 +08:00
package com.engine.organization.transmethod;
2022-06-07 13:43:21 +08:00
import com.engine.organization.entity.DeleteParam;
import com.engine.organization.mapper.job.JobMapper;
import com.engine.organization.util.db.MapperProxyFactory;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
2022-05-26 10:11:02 +08:00
/**
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 JobTransMethod {
public static String getSpanById(String planId) {
2022-06-07 13:43:21 +08:00
JobMapper jobMapper = MapperProxyFactory.getProxy(JobMapper.class);
List<Map<String, Object>> maps = jobMapper.listJobsByIds(DeleteParam.builder().ids(planId).build().getIds());
String names = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
return names;
2022-05-26 10:11:02 +08:00
}
2022-05-30 18:39:03 +08:00
public static String getIsKeySpan(String isKey) {
2022-06-07 13:43:21 +08:00
if ("1".equals(isKey)) {
2022-05-30 18:39:03 +08:00
return "";
2022-06-07 13:43:21 +08:00
} else {
2022-05-30 18:39:03 +08:00
return "";
2022-06-07 13:43:21 +08:00
}
2022-05-30 18:39:03 +08:00
}
2022-05-26 10:11:02 +08:00
}