|
|
@ -10,6 +10,7 @@ import com.engine.organization.mapper.department.DepartmentMapper;
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
|
|
import weaver.file.ImageFileManager;
|
|
|
|
import weaver.general.Util;
|
|
|
|
import weaver.general.Util;
|
|
|
|
import weaver.hrm.company.DepartmentComInfo;
|
|
|
|
import weaver.hrm.company.DepartmentComInfo;
|
|
|
|
import weaver.hrm.company.SubCompanyComInfo;
|
|
|
|
import weaver.hrm.company.SubCompanyComInfo;
|
|
|
@ -38,8 +39,10 @@ public class DepartmentBO {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void setDeptLeader(List<DepartmentListDTO> departments) {
|
|
|
|
public static void setDeptLeader(List<DepartmentListDTO> departments) {
|
|
|
|
|
|
|
|
|
|
|
|
for (DepartmentListDTO dept : departments) {
|
|
|
|
for (DepartmentListDTO dept : departments) {
|
|
|
|
dept.setBmfzr(getEmployeeNameById(dept.getId()));
|
|
|
|
dept.setBmfzr(getEmployeeNameById(dept.getId()));
|
|
|
|
|
|
|
|
|
|
|
|
List<DepartmentListDTO> children = dept.getChildren();
|
|
|
|
List<DepartmentListDTO> children = dept.getChildren();
|
|
|
|
if (CollectionUtils.isNotEmpty(children)){
|
|
|
|
if (CollectionUtils.isNotEmpty(children)){
|
|
|
|
setDeptLeader(children);
|
|
|
|
setDeptLeader(children);
|
|
|
@ -171,7 +174,7 @@ public class DepartmentBO {
|
|
|
|
tree.setPid(null == item.getSupDepId() ? "0" : item.getSupDepId().toString());
|
|
|
|
tree.setPid(null == item.getSupDepId() ? "0" : item.getSupDepId().toString());
|
|
|
|
tree.setSelected(false);
|
|
|
|
tree.setSelected(false);
|
|
|
|
tree.setType("2");
|
|
|
|
tree.setType("2");
|
|
|
|
tree.setParentComp(null == item.getSupDepId() ? "0" : item.getSubCompanyId1().toString());
|
|
|
|
tree.setParentComp(null == item.getSubCompanyId1() ? "0" : item.getSubCompanyId1().toString());
|
|
|
|
tree.setOrderNum(null == item.getShowOrder() ? 0.00 : item.getShowOrder().intValue());
|
|
|
|
tree.setOrderNum(null == item.getShowOrder() ? 0.00 : item.getShowOrder().intValue());
|
|
|
|
tree.setShowOrderOfTree(null == item.getShowOrderOfTree() ? 0.00 : item.getShowOrderOfTree());
|
|
|
|
tree.setShowOrderOfTree(null == item.getShowOrderOfTree() ? 0.00 : item.getShowOrderOfTree());
|
|
|
|
return tree;
|
|
|
|
return tree;
|
|
|
@ -227,5 +230,11 @@ public class DepartmentBO {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 获取部门自定义表字段(附件)显示值 跳转链接
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private Map<String,String> getImageFileName(Integer depetId){
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|