|
|
@ -8,12 +8,16 @@ import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
|
|
|
import com.epmet.dataaggre.dao.govorg.*; |
|
|
|
import com.epmet.dataaggre.dto.epmetuser.result.ListStaffResultDTO; |
|
|
|
import com.epmet.dataaggre.dto.epmetuser.result.StaffRoleListResultDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerAgencyDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerDepartmentDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerGridDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerStaffAgencyDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.*; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.NextAreaCodeFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.OrgStaffListFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.StaffDetailV2FormDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.SubOrgFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.result.*; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.result.OrgInfoCommonDTO; |
|
|
|
import com.epmet.dataaggre.entity.govorg.CustomerAgencyEntity; |
|
|
@ -378,8 +382,22 @@ public class GovOrgServiceImpl implements GovOrgService { |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<OrgStaffListResultDTO> staffList(OrgStaffListFormDTO formDTO) { |
|
|
|
return null; |
|
|
|
public OrgStaffListResultDTO staffList(OrgStaffListFormDTO formDTO) { |
|
|
|
OrgStaffListResultDTO resultDTO = new OrgStaffListResultDTO(); |
|
|
|
//1.按类型查询组织、部门、网格下所有工作人员Id列表[需要按角色排序 所以这里不能分页]
|
|
|
|
List<String> staffIds = customerStaffAgencyDao.selectStaffList(formDTO.getOrgId(), formDTO.getOrgType()); |
|
|
|
if (org.springframework.util.CollectionUtils.isEmpty(staffIds)) { |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
formDTO.setStaffIds(staffIds); |
|
|
|
|
|
|
|
//2.分页查询工作人员基础信息、角色信息【组织人员单位领导角色人员在前;部门人员部门领导角色人员在前;网格人员网格长角色人员在前】
|
|
|
|
List<ListStaffResultDTO> staffList = epmetUserService.getStaffInfoList(formDTO); |
|
|
|
|
|
|
|
//3.封装数据并返回
|
|
|
|
resultDTO.setStaffCount(staffIds.size()); |
|
|
|
resultDTO.setStaffList((null == staffList ? new ArrayList<>() : staffList)); |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|